We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89e632 commit fc49998Copy full SHA for fc49998
arch/powerpc/mm/nohash/44x.c
@@ -25,6 +25,7 @@
25
#include <asm/page.h>
26
#include <asm/cacheflush.h>
27
#include <asm/code-patching.h>
28
+#include <asm/smp.h>
29
30
#include <mm/mmu_decl.h>
31
@@ -241,8 +242,11 @@ void __init mmu_init_secondary(int cpu)
241
242
#endif /* CONFIG_SMP */
243
244
#ifdef CONFIG_PPC_KUEP
-void __init setup_kuep(bool disabled)
245
+void setup_kuep(bool disabled)
246
{
247
+ if (smp_processor_id() != boot_cpuid)
248
+ return;
249
+
250
if (disabled)
251
patch_instruction_site(&patch__tlb_44x_kuep, ppc_inst(PPC_RAW_NOP()));
252
else
0 commit comments