git.codelabs.ch
/
muen
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
radix tree test suite: track preempt_count
[muen/linux.git]
/
tools
/
testing
/
radix-tree
/
linux
/
preempt.h
diff --git
a/tools/testing/radix-tree/linux/preempt.h
b/tools/testing/radix-tree/linux/preempt.h
index 6210672e3baa5c1d2b01075b5ef68e46be975463..65c04c226965d9a0816f889103f42a24957f3fc8 100644
(file)
--- a/
tools/testing/radix-tree/linux/preempt.h
+++ b/
tools/testing/radix-tree/linux/preempt.h
@@
-1,4
+1,4
@@
-/* */
+extern int preempt_count;
-#define preempt_disable()
do { } while (0
)
-#define preempt_enable()
do { } while (0
)
+#define preempt_disable()
uatomic_inc(&preempt_count
)
+#define preempt_enable()
uatomic_dec(&preempt_count
)