Commit d4fe0965 authored by Zhouyi Zhou's avatar Zhouyi Zhou Committed by Michael Ellerman

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: default avatarZhouyi Zhou <yizhouzhou@ict.ac.cn>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 22e55fcf
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <linux/jump_label.h> #include <linux/jump_label.h>
#include <asm/trace.h> #include <asm/trace.h>
#ifdef CONFIG_JUMP_LABEL #ifdef HAVE_JUMP_LABEL
struct static_key opal_tracepoint_key = STATIC_KEY_INIT; struct static_key opal_tracepoint_key = STATIC_KEY_INIT;
void opal_tracepoint_regfunc(void) void opal_tracepoint_regfunc(void)
......
...@@ -640,7 +640,7 @@ EXPORT_SYMBOL(arch_free_page); ...@@ -640,7 +640,7 @@ EXPORT_SYMBOL(arch_free_page);
#endif #endif
#ifdef CONFIG_TRACEPOINTS #ifdef CONFIG_TRACEPOINTS
#ifdef CONFIG_JUMP_LABEL #ifdef HAVE_JUMP_LABEL
struct static_key hcall_tracepoint_key = STATIC_KEY_INIT; struct static_key hcall_tracepoint_key = STATIC_KEY_INIT;
void hcall_tracepoint_regfunc(void) void hcall_tracepoint_regfunc(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment