Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 921bc6cf authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarMauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 0063d61c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -348,6 +348,9 @@ void post_mobility_fixup(void)
		printk(KERN_ERR "Post-mobility device tree update "
			"failed: %d\n", rc);

	/* Possibly switch to a new RFI flush type */
	pseries_setup_rfi_flush();

	return;
}

+2 −0
Original line number Diff line number Diff line
@@ -108,4 +108,6 @@ static inline unsigned long cmo_get_page_size(void)

int dlpar_workqueue_init(void);

void pseries_setup_rfi_flush(void);

#endif /* _PSERIES_PSERIES_H */
+1 −1
Original line number Diff line number Diff line
@@ -459,7 +459,7 @@ static void __init find_and_init_phbs(void)
	of_pci_check_probe_only();
}

static void pseries_setup_rfi_flush(void)
void pseries_setup_rfi_flush(void)
{
	struct h_cpu_char_result result;
	enum l1d_flush_type types;