Skip to content
Commit eccdaeaf authored by Petr Tesarik's avatar Petr Tesarik Committed by Thomas Gleixner
Browse files

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: default avatarPetr Tesarik <ptesarik@suse.cz>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>

--
 posix-cpu-timers.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
parent 13d428af
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment