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(-)

authored by Petr Tesarik and committed by Thomas Gleixner eccdaeaf 13d428af

+1 -1
+1 -1
kernel/posix-cpu-timers.c
··· 311 struct task_cputime cputime; 312 313 thread_group_cputime(p, &cputime); 314 - switch (which_clock) { 315 default: 316 return -EINVAL; 317 case CPUCLOCK_PROF:
··· 311 struct task_cputime cputime; 312 313 thread_group_cputime(p, &cputime); 314 + switch (CPUCLOCK_WHICH(which_clock)) { 315 default: 316 return -EINVAL; 317 case CPUCLOCK_PROF: