The patch titled
cpuidle: make cpuidle sysfs driver/governor switch off by default
has been removed from the -mm tree. Its filename was
cpuidle-make-cpuidle-sysfs-driver-governor-switch-off-by-default.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
Subject: cpuidle: make cpuidle sysfs driver/governor switch off by default
From: Venki Pallipadi <[EMAIL PROTECTED]>
Make default cpuidle sysfs to show current_governor and current_driver in
read-only mode. More elaborate available_governors and available_drivers with
writeable current_governor and current_driver interface only appear with
"cpuidle_sysfs_switch" boot parameter.
Signed-off-by: Venkatesh Pallipadi <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
drivers/cpuidle/cpuidle.c | 1 -
drivers/cpuidle/sysfs.c | 22 +++++++++++++++++++++-
2 files changed, 21 insertions(+), 2 deletions(-)
diff -puN
drivers/cpuidle/cpuidle.c~cpuidle-make-cpuidle-sysfs-driver-governor-switch-off-by-default
drivers/cpuidle/cpuidle.c
---
a/drivers/cpuidle/cpuidle.c~cpuidle-make-cpuidle-sysfs-driver-governor-switch-off-by-default
+++ a/drivers/cpuidle/cpuidle.c
@@ -25,7 +25,6 @@ DEFINE_MUTEX(cpuidle_lock);
LIST_HEAD(cpuidle_detected_devices);
static void (*pm_idle_old)(void);
-
/**
* cpuidle_idle_call - the main idle loop
*
diff -puN
drivers/cpuidle/sysfs.c~cpuidle-make-cpuidle-sysfs-driver-governor-switch-off-by-default
drivers/cpuidle/sysfs.c
---
a/drivers/cpuidle/sysfs.c~cpuidle-make-cpuidle-sysfs-driver-governor-switch-off-by-default
+++ a/drivers/cpuidle/sysfs.c
@@ -13,6 +13,14 @@
#include "cpuidle.h"
+static unsigned int sysfs_switch;
+static int __init cpuidle_sysfs_setup(char *unused)
+{
+ sysfs_switch = 1;
+ return 1;
+}
+__setup("cpuidle_sysfs_switch", cpuidle_sysfs_setup);
+
static ssize_t show_available_drivers(struct sys_device *dev, char *buf)
{
ssize_t i = 0;
@@ -127,6 +135,15 @@ static ssize_t store_current_governor(st
return count;
}
+static SYSDEV_ATTR(current_driver_ro, 0444, show_current_driver, NULL);
+static SYSDEV_ATTR(current_governor_ro, 0444, show_current_governor, NULL);
+
+static struct attribute *cpuclass_default_attrs[] = {
+ &attr_current_driver_ro.attr,
+ &attr_current_governor_ro.attr,
+ NULL
+};
+
static SYSDEV_ATTR(available_drivers, 0444, show_available_drivers, NULL);
static SYSDEV_ATTR(available_governors, 0444, show_available_governors, NULL);
static SYSDEV_ATTR(current_driver, 0644, show_current_driver,
@@ -134,7 +151,7 @@ static SYSDEV_ATTR(current_driver, 0644,
static SYSDEV_ATTR(current_governor, 0644, show_current_governor,
store_current_governor);
-static struct attribute *cpuclass_default_attrs[] = {
+static struct attribute *cpuclass_switch_attrs[] = {
&attr_available_drivers.attr,
&attr_available_governors.attr,
&attr_current_driver.attr,
@@ -152,6 +169,9 @@ static struct attribute_group cpuclass_a
*/
int cpuidle_add_class_sysfs(struct sysdev_class *cls)
{
+ if (sysfs_switch)
+ cpuclass_attr_group.attrs = cpuclass_switch_attrs;
+
return sysfs_create_group(&cls->kset.kobj, &cpuclass_attr_group);
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
git-acpi.patch
cpuidle-add-rating-to-the-governors-and-pick-the-one-with-highest-rating-by-default-fix.patch
git-cpufreq.patch
make-usb-autosuspend-timer-1-sec-jiffy-aligned.patch
round_jiffies-for-i386-and-x86-64-non-critical-corrected-mce-polling.patch
x86_64-convert-to-cleckevents.patch
x86_64-block-irq-balancing-for-timer.patch
ich-force-hpet-make-generic-time-capable-of-switching-broadcast-timer.patch
ich-force-hpet-restructure-hpet-generic-clock-code.patch
ich-force-hpet-ich7-or-later-quirk-to-force-detect-enable.patch
ich-force-hpet-ich7-or-later-quirk-to-force-detect-enable-fix.patch
ich-force-hpet-late-initialization-of-hpet-after-quirk.patch
ich-force-hpet-ich5-quirk-to-force-detect-enable.patch
ich-force-hpet-ich5-quirk-to-force-detect-enable-fix.patch
ich-force-hpet-ich5-fix-a-bug-with-suspend-resume.patch
ich-force-hpet-add-ich7_0-pciid-to-quirk-list.patch
git-newsetup.patch
add-a-flag-to-indicate-deferrable-timers-in-proc-timer_stats.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html