diff options
author | Richard Braun <rbraun@sceen.net> | 2018-02-06 20:45:24 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-02-07 01:08:53 +0100 |
commit | 6db72a1aeaddf038b12490fe9310a10693ffbf7a (patch) | |
tree | be5ffafd3cb11afce2dbddf7f25629e042cca21e /kern/sref_i.h | |
parent | c302412778d43f1ed6223349911013d43eadfdcd (diff) |
kern/sref: allow usage from interrupt context
Diffstat (limited to 'kern/sref_i.h')
-rw-r--r-- | kern/sref_i.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/sref_i.h b/kern/sref_i.h index 695808cc..65d0c1bf 100644 --- a/kern/sref_i.h +++ b/kern/sref_i.h @@ -54,6 +54,8 @@ struct sref_weakref { * Locking keys : * (c) sref_counter * (g) sref_data + * + * Interrupts must be disabled when accessing a global counter. */ struct sref_counter { sref_noref_fn_t noref_fn; |