mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 19:24:02 +08:00
KVM: PPC: Enable napping only for Book3s_64
Before I incorrectly enabled napping also for BookE, which would result in needless dcache flushes. Since we only need to force enable napping on Book3s_64 because it doesn't go into MSR_POW otherwise, we can just #ifdef that code to this particular platform. Reported-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
ebc65874e9
commit
591bd8e7b4
@ -582,8 +582,10 @@ static int __init kvm_guest_init(void)
|
|||||||
if (kvm_para_has_feature(KVM_FEATURE_MAGIC_PAGE))
|
if (kvm_para_has_feature(KVM_FEATURE_MAGIC_PAGE))
|
||||||
kvm_use_magic_page();
|
kvm_use_magic_page();
|
||||||
|
|
||||||
|
#ifdef CONFIG_PPC_BOOK3S_64
|
||||||
/* Enable napping */
|
/* Enable napping */
|
||||||
powersave_nap = 1;
|
powersave_nap = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
free_tmp:
|
free_tmp:
|
||||||
kvm_free_tmp();
|
kvm_free_tmp();
|
||||||
|
Loading…
Reference in New Issue
Block a user