powerpc/jump_label: use HAVE_JUMP_LABEL?

CONFIG_JUMP_LABEL doesn't ensure HAVE_JUMP_LABEL, if it
is not the case use maintainers's own mutex to guard
the modification of global values.

Signed-off-by: Zhouyi Zhou <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
Zhouyi Zhou authored and Michael Ellerman committed 2014-09-25 23:14:45 +10:00
1 parent 22e55fcfd6
commit d4fe0965e2
2 files changed
+2 -2

No files matched your search

@@ -2,7 +2,7 @@
#include <linux/jump_label.h>
#include <asm/trace.h>
#ifdef CONFIG_JUMP_LABEL
#ifdef HAVE_JUMP_LABEL
struct static_key opal_tracepoint_key = STATIC_KEY_INIT;
void opal_tracepoint_regfunc(void)
+1 -1
View File
@@ -640,7 +640,7 @@ EXPORT_SYMBOL(arch_free_page);
#endif
#ifdef CONFIG_TRACEPOINTS
#ifdef CONFIG_JUMP_LABEL
#ifdef HAVE_JUMP_LABEL
struct static_key hcall_tracepoint_key = STATIC_KEY_INIT;
void hcall_tracepoint_regfunc(void)