]> err.no Git - linux-2.6/commit
ACPI: Reintroduce run time configurable max_cstate for !CPU_IDLE case
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>
Mon, 7 Jan 2008 22:50:10 +0000 (17:50 -0500)
committerLen Brown <len.brown@intel.com>
Mon, 7 Jan 2008 22:50:10 +0000 (17:50 -0500)
commit5b3f0e6c1c9638b11a1063bf93c60a0766550b02
tree21d685bb27cb5e42c1f9160dc15b75a6cd672084
parent3ce54450461bad18bbe1f9f5aa3ecd2f8e8d1235
ACPI: Reintroduce run time configurable max_cstate for !CPU_IDLE case

This was writeable in 2.6.23 but the cpuidle merge made it read-only.  But
some people's scripts (ie: Mark's) were writing to it.

As an unhappy compromise, make max_cstate writeable again if the kernel was
configured without CONFIG_CPU_IDLE.

http://bugzilla.kernel.org/show_bug.cgi?id=9683

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Mark Lord <lkml@rtr.ca>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c