Messages in this thread |  | | Date | Wed, 12 Nov 2014 17:56:10 +0100 | From | Peter Zijlstra <> | Subject | Re: [PATCH v2] sched/cputime: fix clock_nanosleep/clock_gettime inconsistency |
| |
On Wed, Nov 12, 2014 at 04:58:44PM +0100, Stanislaw Gruszka wrote: > Commit d670ec13178d0 "posix-cpu-timers: Cure SMP wobbles" fixes one glibc > test case in cost of breaking another one. After that commit, calling > clock_nanosleep(TIMER_ABSTIME, X) and then clock_gettime(&Y) can result > of Y time being smaller than X time. > > Below is full reproducer (tst-cpuclock2.c) : > > /* Parameters for the Linux kernel ABI for CPU clocks. */ > ((~(clockid_t) (pid) << 3) | (clockid_t) (clock)) >
You lost all the #include and #define stmts there, restored them from the previous posting.
|  |