Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

isdn: Convert obsolete cputime type to nsecs

Not sure if MISDN stats are ABI but it displays task cputime in cputime_t
raw value regardless of what type cputime_t wraps which could be either
jiffies, nsecs, usecs, or whatever random time unit. Plus it wrongly
assumes that cputime_t is long.

Given that this dump is broken anyway, lets just display the nanosec
value and stick with that.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Link: http://lkml.kernel.org/r/1485832191-26889-11-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Frederic Weisbecker and committed by
Ingo Molnar
c0e7a500 f7dcd63d

+3 -3
+3 -3
drivers/isdn/mISDN/stack.c
··· 203 203 { 204 204 struct mISDNstack *st = data; 205 205 #ifdef MISDN_MSG_STATS 206 - cputime_t utime, stime; 206 + u64 utime, stime; 207 207 #endif 208 208 int err = 0; 209 209 ··· 306 306 "msg %d sleep %d stopped\n", 307 307 dev_name(&st->dev->dev), st->msg_cnt, st->sleep_cnt, 308 308 st->stopped_cnt); 309 - task_cputime_t(st->thread, &utime, &stime); 309 + task_cputime(st->thread, &utime, &stime); 310 310 printk(KERN_DEBUG 311 - "mISDNStackd daemon for %s utime(%ld) stime(%ld)\n", 311 + "mISDNStackd daemon for %s utime(%llu) stime(%llu)\n", 312 312 dev_name(&st->dev->dev), utime, stime); 313 313 printk(KERN_DEBUG 314 314 "mISDNStackd daemon for %s nvcsw(%ld) nivcsw(%ld)\n",