* Should we relax in udelay()?
@ 2004-12-14 19:31 Matthew Wilcox
2004-12-16 18:23 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox @ 2004-12-14 19:31 UTC (permalink / raw)
To: linux-ia64
Would the following patch be a good idea? Obviously, this is a busy-loop,
but does itc tick correctly while we're relaxing?
Index: include/asm-ia64/delay.h
=================================RCS file: /var/cvs/linux-2.6/include/asm-ia64/delay.h,v
retrieving revision 1.4
diff -u -p -r1.4 delay.h
--- linux/include/asm-ia64/delay.h 23 May 2004 23:52:58 -0000 1.4
+++ linux/include/asm-ia64/delay.h 14 Dec 2004 18:20:51 -0000
@@ -91,7 +91,7 @@ udelay (unsigned long usecs)
unsigned long cycles = usecs*local_cpu_data->cyc_per_usec;
while (ia64_get_itc() - start < cycles)
- /* skip */;
+ cpu_relax();
}
#endif /* _ASM_IA64_DELAY_H */
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-16 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-14 19:31 Should we relax in udelay()? Matthew Wilcox
2004-12-16 18:23 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox