Skip to content

Commit d4fe096

Browse files
zhouzhouyi-hubmpe
authored andcommitted
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 <yizhouzhou@ict.ac.cn> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 22e55fc commit d4fe096

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/powerpc/platforms/powernv/opal-tracepoints.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <linux/jump_label.h>
33
#include <asm/trace.h>
44

5-
#ifdef CONFIG_JUMP_LABEL
5+
#ifdef HAVE_JUMP_LABEL
66
struct static_key opal_tracepoint_key = STATIC_KEY_INIT;
77

88
void opal_tracepoint_regfunc(void)

‎arch/powerpc/platforms/pseries/lpar.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ EXPORT_SYMBOL(arch_free_page);
640640
#endif
641641

642642
#ifdef CONFIG_TRACEPOINTS
643-
#ifdef CONFIG_JUMP_LABEL
643+
#ifdef HAVE_JUMP_LABEL
644644
struct static_key hcall_tracepoint_key = STATIC_KEY_INIT;
645645

646646
void hcall_tracepoint_regfunc(void)

0 commit comments

Comments
 (0)