Fix ACPI processor power block initialization
authorLinus Torvalds <torvalds@g5.osdl.org>
Fri, 18 Nov 2005 15:29:51 +0000 (07:29 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 18 Nov 2005 15:29:51 +0000 (07:29 -0800)
commit2203d6ed448ff3b777ee6bb614a53e686b483e5b
treeb7f540f808bde4febc304ad60b9af277ab0e7170
parent2656c076e31a3ce3ab2a987a578e7122dc2af51d
Fix ACPI processor power block initialization

Properly clear the memory, and set "pr->flags.power" only if a C2 or
deeper state is valid (to make the code match both the comment and
previous behaviour).

This fixes a boot-time lockup reported by Maneesh Soni when using
"maxcpus=1".

Acked-by: Maneesh Soni <maneesh@in.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/acpi/processor_idle.c