Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=69d39d6669a01e26ae6dbf5c3e84e0d1b6ccf332
Commit:     69d39d6669a01e26ae6dbf5c3e84e0d1b6ccf332
Parent:     b2eaee6e81696d80d9c6ecfcbba8951673e83934
Author:     Heiko Carstens <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 5 11:10:13 2007 +0100
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Mon Nov 5 11:10:17 2007 +0100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
---
 arch/s390/kernel/smp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 1d97fe1..b05ae85 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)
        }
        new_time = idle->idle_time;
        spin_unlock_irq(&idle->lock);
-       return sprintf(buf, "%llu us\n", new_time >> 12);
+       return sprintf(buf, "%llu\n", new_time >> 12);
 }
-static SYSDEV_ATTR(idle_time, 0444, show_idle_time, NULL);
+static SYSDEV_ATTR(idle_time_us, 0444, show_idle_time, NULL);
 
 static struct attribute *cpu_attrs[] = {
        &attr_capability.attr,
        &attr_idle_count.attr,
-       &attr_idle_time.attr,
+       &attr_idle_time_us.attr,
        NULL,
 };
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to