[lkml]   [1998]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Scheduler ugliness-fix

On Wed, 8 Jul 1998, Pavel Machek wrote:
> This is bugfix. (Or more uggliness-fix. No need to try to fool gcc
> when jiffies are volatile, anyway, also (~0UL == 0xffffffff) tests
> fail when cross compiling and we already have clean way to do this.

The _reason_ for the ugliness is apparent when you look at the assembly
code before and after your patch.

gcc simply creates horrible code for updates to volatile variables, for no
good reason. As the "volatility" of jiffies is an artifact to just make
gcc not optimize certain timing loops, the strange cast is perfectly


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to

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