posix-cpu-timers: fix clock_gettime with CLOCK_PROCESS_CPUTIME_ID
authorPetr Tesarik <ptesarik@suse.cz>
Mon, 24 Nov 2008 14:46:31 +0000 (15:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 24 Nov 2008 15:41:40 +0000 (16:41 +0100)
commiteccdaeafaea3ed115068ba55d01f22e486e5437d
tree75b59c0bcbf00c869e4b25b3bf34671ba4c3b8c1
parent13d428afc007fcfcd6deeb215618f54cf9c0cae6
posix-cpu-timers: fix clock_gettime with CLOCK_PROCESS_CPUTIME_ID

Since CLOCK_PROCESS_CPUTIME_ID is in fact translated to -6, the switch
statement in cpu_clock_sample_group() must first mask off the irrelevant
bits, similar to cpu_clock_sample().

Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
--
 posix-cpu-timers.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/posix-cpu-timers.c