diff options
author | Zhang Rui <rui.zhang@intel.com> | 2012-12-12 02:31:37 -0500 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2012-12-12 02:34:48 -0500 |
commit | 1f53ef17d3ed6c34868cc8e7aa7c1d351c2fdc95 (patch) | |
tree | 1f26888dcdd55e44293124344c64a219b928958e | |
parent | d567c686aebc7140f73318ee250236bda39c04eb (diff) |
Thermal: Fix DEFAULT_THERMAL_GOVERNOR
Fix DEFAULT_THERMAL_GOVERNOR to be consistant with the
default governor selected in kernel config file.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/thermal/step_wise.c | 2 | ||||
-rw-r--r-- | include/linux/thermal.h | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c index 1242cffed8b0..0cd5e9fbab1c 100644 --- a/drivers/thermal/step_wise.c +++ b/drivers/thermal/step_wise.c | |||
@@ -170,7 +170,7 @@ static int step_wise_throttle(struct thermal_zone_device *tz, int trip) | |||
170 | } | 170 | } |
171 | 171 | ||
172 | static struct thermal_governor thermal_gov_step_wise = { | 172 | static struct thermal_governor thermal_gov_step_wise = { |
173 | .name = DEFAULT_THERMAL_GOVERNOR, | 173 | .name = "step_wise", |
174 | .throttle = step_wise_throttle, | 174 | .throttle = step_wise_throttle, |
175 | .owner = THIS_MODULE, | 175 | .owner = THIS_MODULE, |
176 | }; | 176 | }; |
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 807f2146fe35..fe82022478e7 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
@@ -46,8 +46,14 @@ | |||
46 | #define THERMAL_GENL_VERSION 0x01 | 46 | #define THERMAL_GENL_VERSION 0x01 |
47 | #define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_group" | 47 | #define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_group" |
48 | 48 | ||
49 | /* Default Thermal Governor: Does Linear Throttling */ | 49 | /* Default Thermal Governor */ |
50 | #define DEFAULT_THERMAL_GOVERNOR "step_wise" | 50 | #if defined(CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE) |
51 | #define DEFAULT_THERMAL_GOVERNOR "step_wise" | ||
52 | #elif defined(CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE) | ||
53 | #define DEFAULT_THERMAL_GOVERNOR "fair_share" | ||
54 | #elif defined(CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE) | ||
55 | #define DEFAULT_THERMAL_GOVERNOR "user_space" | ||
56 | #endif | ||
51 | 57 | ||
52 | struct thermal_zone_device; | 58 | struct thermal_zone_device; |
53 | struct thermal_cooling_device; | 59 | struct thermal_cooling_device; |