Skip to content

Commit c4bd6cb

Browse files
ozbenhmpe
authored andcommitted
powerpc: Move 64-bit feature fixup earlier
Make it part of early_setup() as we really want the feature fixups to be applied before we turn on the MMU since they can have an impact on the various assembly path related to MMU management and interrupts. This makes 64-bit match what 32-bit does. Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 9402c68 commit c4bd6cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/powerpc/kernel/setup_64.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ void __init early_setup(unsigned long dt_ptr)
285285
/* Initialize the hash table or TLB handling */
286286
early_init_mmu();
287287

288+
/* Apply all the dynamic patching */
289+
apply_feature_fixups();
290+
288291
/*
289292
* At this point, we can let interrupts switch to virtual mode
290293
* (the MMU has been setup), so adjust the MSR in the PACA to
@@ -467,8 +470,6 @@ void __init setup_system(void)
467470
{
468471
DBG(" -> setup_system()\n");
469472

470-
apply_feature_fixups();
471-
472473
/*
473474
* Unflatten the device-tree passed by prom_init or kexec
474475
*/

0 commit comments

Comments
 (0)