aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2007-11-05 05:10:13 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-11-05 05:10:17 -0500
commit69d39d6669a01e26ae6dbf5c3e84e0d1b6ccf332 (patch)
tree4ea0202db8576158c4763c24b6d68952769ec925 /arch/s390
parentb2eaee6e81696d80d9c6ecfcbba8951673e83934 (diff)
[S390] Rename "idle_time" attribute to "idle_time_us".
Seems that people prefer to have the unit encoded in the attribute name. Also makes parsing easier. Now we have: # cat /sys/devices/system/cpu/cpu0/idle_time_us 131473592 instead of # cat /sys/devices/system/cpu/cpu0/idle_time 131473592 us Cc: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/smp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 1d97fe1c0e53..b05ae8584258 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -788,14 +788,14 @@ static ssize_t show_idle_time(struct sys_device *dev, char *buf)
788 } 788 }
789 new_time = idle->idle_time; 789 new_time = idle->idle_time;
790 spin_unlock_irq(&idle->lock); 790 spin_unlock_irq(&idle->lock);
791 return sprintf(buf, "%llu us\n", new_time >> 12); 791 return sprintf(buf, "%llu\n", new_time >> 12);
792} 792}
793static SYSDEV_ATTR(idle_time, 0444, show_idle_time, NULL); 793static SYSDEV_ATTR(idle_time_us, 0444, show_idle_time, NULL);
794 794
795static struct attribute *cpu_attrs[] = { 795static struct attribute *cpu_attrs[] = {
796 &attr_capability.attr, 796 &attr_capability.attr,
797 &attr_idle_count.attr, 797 &attr_idle_count.attr,
798 &attr_idle_time.attr, 798 &attr_idle_time_us.attr,
799 NULL, 799 NULL,
800}; 800};
801 801