Tigran Aivazian wrote:
>
> Hi,
>
> Why does do_timer() do:
>
> (*(unsigned long *)&jiffies)++;
>
> why not just jiffies++; ? It works fine with jiffies++ but I assume there
> is a reason...
GCC optimize(reorder) "jiffies++" and "(*(unsigned long *)&jiffies)++"
is
used to be sure jiffies is incremented exactly where/when you want.
Petkan
-
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/
This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:06 EST