Home Home > GIT Browse > openSUSE-15.2
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-09-13 19:35:40 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-09-13 20:00:37 +0200
commita70b17b271b727b24885765b0ab82a1ec8cb5d0c (patch)
tree0e4a3ba329e194b842f654eea7eba8859252fb2e
parent0049e9ac81e8d233b099bcf77a3e6ea9ed769b2c (diff)
powerpc/pseries: correctly track irq state in default idle
(bsc#1150727 ltc#178925). suse-commit: 97a466518a95dcbfff02f21890001949c527b1e9
-rw-r--r--arch/powerpc/platforms/pseries/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index f5940cc71c37..63462e96cf0e 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -316,6 +316,9 @@ static void pseries_lpar_idle(void)
* low power mode by ceding processor to hypervisor
*/
+ if (!prep_irq_for_idle())
+ return;
+
/* Indicate to hypervisor that we are idle. */
get_lppaca()->idle = 1;