aboutsummaryrefslogtreecommitdiff
path: root/hw/slw.c
diff options
context:
space:
mode:
authorShreyas B. Prabhu <shreyas@linux.vnet.ibm.com>2016-06-17 09:51:45 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-20 14:32:47 +1000
commitbe7394f9083df569d865f72f43e70a0a37ffb2d1 (patch)
tree7fbca6e409f1a2fbd149dff630381f82ff553ccc /hw/slw.c
parent326683591db968f7835d9aef7c0699ef8e158b30 (diff)
downloadskiboot-be7394f9083df569d865f72f43e70a0a37ffb2d1.zip
skiboot-be7394f9083df569d865f72f43e70a0a37ffb2d1.tar.gz
skiboot-be7394f9083df569d865f72f43e70a0a37ffb2d1.tar.bz2
slw: Change variable name can_winkle to has_slw
Change variable name "can_winkle" to a more generic name "has_slw". This makes it easier to add new deep-idle states which rely on SLW. Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/slw.c')
-rw-r--r--hw/slw.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hw/slw.c b/hw/slw.c
index 53e02cc..38d5cf5 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -497,7 +497,8 @@ void add_cpu_idle_state_properties(void)
struct proc_chip *chip;
int nr_states;
- bool can_sleep = true, can_winkle = true;
+ bool can_sleep = true;
+ bool has_slw = true;
u8 i;
u32 supported_states_mask;
@@ -569,8 +570,8 @@ void add_cpu_idle_state_properties(void)
nr_states = ARRAY_SIZE(power7_cpu_idle_states);
}
- /* Enable winkle only if slw image is intact */
- can_winkle = (chip->slw_base && chip->slw_bar_size &&
+ /* Enable deep idle states only if slw image is intact */
+ has_slw = (chip->slw_base && chip->slw_bar_size &&
chip->slw_image_size);
/*
@@ -600,7 +601,7 @@ void add_cpu_idle_state_properties(void)
if (can_sleep)
supported_states_mask |= OPAL_PM_SLEEP_ENABLED |
OPAL_PM_SLEEP_ENABLED_ER1;
- if (can_winkle)
+ if (has_slw)
supported_states_mask |= OPAL_PM_WINKLE_ENABLED;
for (i = 0; i < nr_states; i++) {