Skip to content

Commit

Permalink
Try without CONFIG_JUMP_LABEL
Browse files Browse the repository at this point in the history
Signed-off-by: Mahesh Salgaonkar <[email protected]>
  • Loading branch information
maheshsal committed Feb 12, 2024
1 parent b1bd90d commit d9ae214
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
7 changes: 1 addition & 6 deletions arch/powerpc/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@

#define __my_cpu_offset local_paca->data_offset

#ifdef CONFIG_JUMP_LABEL
#include <linux/jump_label.h>
DECLARE_STATIC_KEY_FALSE(__percpu_embed_first_chunk);

#define is_embed_first_chunk \
(static_key_enabled(&__percpu_embed_first_chunk.key))

#else /* !CONFIG_JUMP_LABEL */
extern bool __percpu_embed_first_chunk;
#define is_embed_first_chunk __percpu_embed_first_chunk

#endif /* CONFIG_JUMP_LABEL */
#endif /* CONFIG_SMP */
#endif /* __powerpc64__ */

Expand Down
8 changes: 0 additions & 8 deletions arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,11 +834,7 @@ static __init int pcpu_cpu_to_node(int cpu)

unsigned long __per_cpu_offset[NR_CPUS] __read_mostly;
EXPORT_SYMBOL(__per_cpu_offset);
#ifdef CONFIG_JUMP_LABEL
DEFINE_STATIC_KEY_FALSE(__percpu_embed_first_chunk);
#else
bool __percpu_embed_first_chunk;
#endif

void __init setup_per_cpu_areas(void)
{
Expand Down Expand Up @@ -875,11 +871,7 @@ void __init setup_per_cpu_areas(void)
"falling back to page size\n",
pcpu_fc_names[pcpu_chosen_fc], rc);
else {
#ifdef CONFIG_JUMP_LABEL
static_key_enable(&__percpu_embed_first_chunk.key);
#else
__percpu_embed_first_chunk = true;
#endif
}
}

Expand Down

0 comments on commit d9ae214

Please sign in to comment.