projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0910697
)
ACPI: prevent processor.max_cstate=0 boot crash
author
Len Brown
<len.brown@intel.com>
Fri, 24 Apr 2009 03:21:29 +0000
(23:21 -0400)
committer
Len Brown
<len.brown@intel.com>
Fri, 24 Apr 2009 03:21:29 +0000
(23:21 -0400)
As processor.max_cstate is an init-time-only modparam,
sanity checking it at init-time is sufficient.
http://bugzilla.kernel.org/show_bug.cgi?id=13142
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/processor_idle.c
b/drivers/acpi/processor_idle.c
index 6fe121434ffb36ec67a91b45823e3df3d45873c5..436127e0eec33b10657cd8da29773baf26eef89b 100644
(file)
--- a/
drivers/acpi/processor_idle.c
+++ b/
drivers/acpi/processor_idle.c
@@
-1037,6
+1037,9
@@
static int acpi_processor_setup_cpuidle(struct acpi_processor *pr)
dev->states[i].desc[0] = '\0';
}
+ if (max_cstate == 0)
+ max_cstate = 1;
+
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER && i <= max_cstate; i++) {
cx = &pr->power.states[i];
state = &dev->states[count];