]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
signals: make siginfo_t si_utime + si_sstime report times in USER_HZ, not HZ
authorMichael Kerrisk <mtk.manpages@googlemail.com>
Fri, 25 Jul 2008 08:47:32 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:39 +0000 (10:53 -0700)
commitd8878ba3f05ae5bbfad5a6e72e5121c0ea35f989
tree31fbf7bd9605c103d8ef9e538beb54da8df04540
parente4901f92a8dbe843e76651a50f7a2a6dd3d53474
signals: make siginfo_t si_utime + si_sstime report times in USER_HZ, not HZ

In the switch to configurable HZ in 2.6, the treatment of the si_utime and
si_stime fields that are exposed to userland via the siginfo structure
looks to have been botched.  As things stand, these fields report times in
units of HZ, so that userland gets information that varies depending on
the HZ that the kernel was configured with.  This patch changes the
reported values to use USER_HZ units.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c