lkml.org 
[lkml]   [2000]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: (*(unsigned long *)&jiffies)++;
From
Date
tigran@sco.COM (Tigran Aivazian) writes:

> Why does do_timer() do:
>
> (*(unsigned long *)&jiffies)++;
>
> why not just jiffies++; ? It works fine with jiffies++ but I assume there
> is a reason...

It casts away the volatileness of `jiffies'. This means that GCC uses
`incl' instead of an explicit read/increment/write operation.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.087 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site