projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dependency on kallsyms for irq_to_desc (kernel 3.4+)
[lttng-modules.git]
/
lttng-clock.c
diff --git
a/lttng-clock.c
b/lttng-clock.c
index 4296d6c133f24e65040069e0c6e019c16a751537..48b4be573064b48cbaa9129f9e8e5f689a88ebe0 100644
(file)
--- a/
lttng-clock.c
+++ b/
lttng-clock.c
@@
-22,9
+22,9
@@
#include <linux/kmod.h>
#include <linux/mutex.h>
#include <linux/kmod.h>
#include <linux/mutex.h>
-#include
"wrapper/trace-clock.h"
-#include
"lttng-events.h"
-#include
"lttng-tracer.h"
+#include
<wrapper/trace-clock.h>
+#include
<lttng-events.h>
+#include
<lttng-tracer.h>
struct lttng_trace_clock *lttng_trace_clock;
EXPORT_SYMBOL_GPL(lttng_trace_clock);
struct lttng_trace_clock *lttng_trace_clock;
EXPORT_SYMBOL_GPL(lttng_trace_clock);
@@
-48,7
+48,7
@@
int lttng_clock_register_plugin(struct lttng_trace_clock *ltc,
goto end;
}
/* set clock */
goto end;
}
/* set clock */
-
ACCESS_ONCE(lttng_trace_clock) = ltc
;
+
WRITE_ONCE(lttng_trace_clock, ltc)
;
lttng_trace_clock_mod = mod;
end:
mutex_unlock(&clock_mutex);
lttng_trace_clock_mod = mod;
end:
mutex_unlock(&clock_mutex);
@@
-66,7
+66,7
@@
void lttng_clock_unregister_plugin(struct lttng_trace_clock *ltc,
}
WARN_ON_ONCE(lttng_trace_clock_mod != mod);
}
WARN_ON_ONCE(lttng_trace_clock_mod != mod);
-
ACCESS_ONCE(lttng_trace_clock) = NULL
;
+
WRITE_ONCE(lttng_trace_clock, NULL)
;
lttng_trace_clock_mod = NULL;
end:
mutex_unlock(&clock_mutex);
lttng_trace_clock_mod = NULL;
end:
mutex_unlock(&clock_mutex);
@@
-83,7
+83,7
@@
void lttng_clock_ref(void)
ret = try_module_get(lttng_trace_clock_mod);
if (!ret) {
printk(KERN_ERR "LTTng-clock cannot get clock plugin module\n");
ret = try_module_get(lttng_trace_clock_mod);
if (!ret) {
printk(KERN_ERR "LTTng-clock cannot get clock plugin module\n");
-
ACCESS_ONCE(lttng_trace_clock) = NULL
;
+
WRITE_ONCE(lttng_trace_clock, NULL)
;
lttng_trace_clock_mod = NULL;
}
}
lttng_trace_clock_mod = NULL;
}
}
This page took
0.02322 seconds
and
4
git commands to generate.