Skip to content

Commit 921bc6c

Browse files
committed
powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
We might have migrated to a machine that uses a different flush type, or doesn't need flushing at all. Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Mauricio Faria de Oliveira <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 0063d61 commit 921bc6c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

arch/powerpc/platforms/pseries/mobility.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ void post_mobility_fixup(void)
348348
printk(KERN_ERR "Post-mobility device tree update "
349349
"failed: %d\n", rc);
350350

351+
/* Possibly switch to a new RFI flush type */
352+
pseries_setup_rfi_flush();
353+
351354
return;
352355
}
353356

arch/powerpc/platforms/pseries/pseries.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,6 @@ static inline unsigned long cmo_get_page_size(void)
108108

109109
int dlpar_workqueue_init(void);
110110

111+
void pseries_setup_rfi_flush(void);
112+
111113
#endif /* _PSERIES_PSERIES_H */

arch/powerpc/platforms/pseries/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ static void __init find_and_init_phbs(void)
459459
of_pci_check_probe_only();
460460
}
461461

462-
static void pseries_setup_rfi_flush(void)
462+
void pseries_setup_rfi_flush(void)
463463
{
464464
struct h_cpu_char_result result;
465465
enum l1d_flush_type types;

0 commit comments

Comments
 (0)