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.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu