diff options
author | Will Deacon <[email protected]> | 2019-11-21 11:58:53 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-11-25 09:14:13 +0100 |
commit | 23e6b169c9917fbd77534f8c5f378cb073f548bd (patch) | |
tree | 2e5029ea095271946a7f5cd7f7de4d47db82bbba /tools/perf/util/trace-event-scripting.c | |
parent | 3ef240eaff36b8119ac9e2ea17cbf41179c930ba (diff) |
locking/refcount: Define constants for saturation and max refcount values
The REFCOUNT_FULL implementation uses a different saturation point than
the x86 implementation, which means that the shared refcount code in
lib/refcount.c (e.g. refcount_dec_not_one()) needs to be aware of the
difference.
Rather than duplicate the definitions from the lkdtm driver, instead
move them into <linux/refcount.h> and update all references accordingly.
Signed-off-by: Will Deacon <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Tested-by: Hanjun Guo <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Elena Reshetova <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions