aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_stackinit.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2019-05-17 11:52:34 +0000
committerIngo Molnar <[email protected]>2019-05-24 07:00:11 +0000
commit5322ea58a06da2e69c5ef36a9b4d4b9255edd423 (patch)
tree3d40eddd863065f3c365fb938880196c6645da3a /lib/test_stackinit.c
parentperf/ring-buffer: Always use {READ,WRITE}_ONCE() for rb->user_page data (diff)
downloadkernel-5322ea58a06da2e69c5ef36a9b4d4b9255edd423.tar.gz
kernel-5322ea58a06da2e69c5ef36a9b4d4b9255edd423.zip
perf/ring-buffer: Use regular variables for nesting
While the IRQ/NMI will nest, the nest-count will be invariant over the actual exception, since it will decrement equal to increment. This means we can -- carefully -- use a regular variable since the typical LOAD-STORE race doesn't exist (similar to preempt_count). This optimizes the ring-buffer for all LOAD-STORE architectures, since they need to use atomic ops to implement local_t. Suggested-by: Alexander Shishkin <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions