Skip to contentSkip to conversation

2.6.24: restore missing sysfs max_cstate attr

PATCH New Mark Lord 1 participant 1 message Nov 30, 2007 ACPI

lore
Share & tools
lore

Mark Lord

author
#0 lore raw

PATCH 1/1 2.6.24: restore missing sysfs max_cstate attr

Len, is there any good reason why max_cstate was made invisible in 2.6.24, breaking my userspace scripts that access it?

Here's a patch to fix the regression from 2.6.23:

Restore visibility of /sys/module/processor/parameters/max_cstate for compatibility with kernels prior to 2.6.24.

I have scripts here that rely upon it.

---

Patch is against 2.6.24-rc3-git5.

drivers/acpi/processor_idle.c renamed from drivers/acpi/processor_idle.c.orig +0 -0
@@ -76,7 +76,7 @@

#define PM_TIMER_TICKS_TO_US(p) (((p) * 1000)/(PM_TIMER_FREQUENCY/1000))

static unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER; -module_param(max_cstate, uint, 0000); +module_param(max_cstate, uint, 0644);
static unsigned int nocst __read_mostly;
module_param(nocst, uint, 0000);