Messages in this thread | | | Subject | Re: [PATCH] timer: Fix jiffies wrap behavior of round_jiffies*() | From | Joe Perches <> | Date | Wed, 29 May 2013 17:13:49 -0700 |
| |
On Wed, 2013-05-29 at 16:38 -0700, Andrew Morton wrote: > On Wed, 29 May 2013 16:17:47 -0700 Joe Perches <joe@perches.com> wrote: > > > > We could perhaps have a checkpatch rule > > > which looks for comparisons against jiffes (and any other > > > time-measuring variables we can detect) > > > > other variables like? > > Grepping for time_after finds a bunch. There's no real pattern to it though.
get_jiffies_64() should probably be added as another test too.
Also, these might be wrong:
arch/arm/kernel/smp_twd.c: while (get_jiffies_64() < waitjiffies) arch/arm/kernel/smp_twd.c: while (get_jiffies_64() < waitjiffies) fs/fuse/dir.c: else if (fuse_dentry_time(entry) < get_jiffies_64()) { fs/fuse/dir.c: if (fi->i_time < get_jiffies_64()) { fs/fuse/dir.c: if (fi->i_time < get_jiffies_64()) {
| |