lkml.org 
[lkml]   [2014]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2014-11-12 18:41    [W:0.070 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site