Skip to content

Commit

Permalink
Remove CONFIG_PPC64
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshsal committed Feb 12, 2024
1 parent d9ae214 commit 50262a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/include/asm/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,8 @@ static inline void interrupt_nmi_enter_prepare(struct pt_regs *regs, struct inte
* embedded. With CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK enabled there
* are chances where percpu allocation can come from vmalloc area.
*/
#ifdef CONFIG_PPC64
if (IS_ENABLED(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) && !is_embed_first_chunk)
return;
#endif

/* Otherwise, it should be safe to call it */
nmi_enter();
Expand All @@ -361,10 +359,8 @@ static inline void interrupt_nmi_exit_prepare(struct pt_regs *regs, struct inter
// no nmi_exit for a pseries hash guest taking a real mode exception
} else if (IS_ENABLED(CONFIG_KASAN)) {
// no nmi_exit for KASAN in real mode
#ifdef CONFIG_PPC64
} else if (IS_ENABLED(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) && !is_embed_first_chunk) {
// no nmi_exit if percpu first chunk is not embedded
#endif
} else {
nmi_exit();
}
Expand Down
10 changes: 7 additions & 3 deletions arch/powerpc/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@

#define __my_cpu_offset local_paca->data_offset

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

#ifdef CONFIG_PPC64
#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))

#endif /* CONFIG_SMP */
#endif /* __powerpc64__ */
#else
#define is_embed_first_chunk (true)
#endif /* CONFIG_PPC64 */

#include <asm-generic/percpu.h>

Expand Down

0 comments on commit 50262a8

Please sign in to comment.