lkml.org 
[lkml]   [1998]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Scheduler ugliness-fix
   Date: 	Wed, 8 Jul 1998 10:32:01 -0700 (PDT)
From: Linus Torvalds <torvalds@transmeta.com>

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 acceptable.

Ok, but please put the other part of his patch in because GCC's cpp
does not know xxULL value limits correctly when crossing from 32-bit
to 64-bit and vice versa.

Later,
David S. Miller
davem@dm.cobaltmicro.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site