projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: compaction mm_compaction_isolate_template update for Linux 4.0+
[lttng-modules.git]
/
lib
/
ringbuffer
/
frontend_api.h
diff --git
a/lib/ringbuffer/frontend_api.h
b/lib/ringbuffer/frontend_api.h
index ff6abce93d684a86e48066ed7fc537a2516fe9b4..b622bd7e865cae4079a4a91c2bab87eed34ebb32 100644
(file)
--- a/
lib/ringbuffer/frontend_api.h
+++ b/
lib/ringbuffer/frontend_api.h
@@
-30,6
+30,7
@@
*/
#include "../../wrapper/ringbuffer/frontend.h"
*/
#include "../../wrapper/ringbuffer/frontend.h"
+#include "../../wrapper/percpu-defs.h"
#include <linux/errno.h>
#include <linux/prefetch.h>
#include <linux/errno.h>
#include <linux/prefetch.h>
@@
-73,7
+74,7
@@
static inline
void lib_ring_buffer_put_cpu(const struct lib_ring_buffer_config *config)
{
barrier();
void lib_ring_buffer_put_cpu(const struct lib_ring_buffer_config *config)
{
barrier();
-
__get_cpu_var(lib_ring_buffer_nesting
)--;
+
(*lttng_this_cpu_ptr(&lib_ring_buffer_nesting)
)--;
rcu_read_unlock_sched_notrace();
}
rcu_read_unlock_sched_notrace();
}
This page took
0.023855 seconds
and
4
git commands to generate.