diff options
| author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-04-19 12:17:29 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-19 12:17:29 -0400 |
| commit | adf6d34e460387ee3e8f1e1875d52bff51212c7d (patch) | |
| tree | 88ef100143e6184103a608f82dfd232bf6376eaf /drivers/cpuidle/sysfs.c | |
| parent | d1964dab60ce7c104dd21590e987a8787db18051 (diff) | |
| parent | 3760d31f11bfbd0ead9eaeb8573e0602437a9d7c (diff) | |
Merge branch 'omap2-upstream' into devel
Diffstat (limited to 'drivers/cpuidle/sysfs.c')
| -rw-r--r-- | drivers/cpuidle/sysfs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index 69102ca05685..e949618b9be0 100644 --- a/drivers/cpuidle/sysfs.c +++ b/drivers/cpuidle/sysfs.c | |||
| @@ -218,6 +218,12 @@ static ssize_t show_state_##_name(struct cpuidle_state *state, char *buf) \ | |||
| 218 | return sprintf(buf, "%u\n", state->_name);\ | 218 | return sprintf(buf, "%u\n", state->_name);\ |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | #define define_show_state_ull_function(_name) \ | ||
| 222 | static ssize_t show_state_##_name(struct cpuidle_state *state, char *buf) \ | ||
| 223 | { \ | ||
| 224 | return sprintf(buf, "%llu\n", state->_name);\ | ||
| 225 | } | ||
| 226 | |||
| 221 | #define define_show_state_str_function(_name) \ | 227 | #define define_show_state_str_function(_name) \ |
| 222 | static ssize_t show_state_##_name(struct cpuidle_state *state, char *buf) \ | 228 | static ssize_t show_state_##_name(struct cpuidle_state *state, char *buf) \ |
| 223 | { \ | 229 | { \ |
| @@ -228,8 +234,8 @@ static ssize_t show_state_##_name(struct cpuidle_state *state, char *buf) \ | |||
| 228 | 234 | ||
| 229 | define_show_state_function(exit_latency) | 235 | define_show_state_function(exit_latency) |
| 230 | define_show_state_function(power_usage) | 236 | define_show_state_function(power_usage) |
| 231 | define_show_state_function(usage) | 237 | define_show_state_ull_function(usage) |
| 232 | define_show_state_function(time) | 238 | define_show_state_ull_function(time) |
| 233 | define_show_state_str_function(name) | 239 | define_show_state_str_function(name) |
| 234 | define_show_state_str_function(desc) | 240 | define_show_state_str_function(desc) |
| 235 | 241 | ||
