lkml.org 
[lkml]   [2003]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Poll-based IDE driver
On Wed, Oct 08, 2003 at 12:50:51PM +0100, Dave Jones wrote:
>
> Why not just use udelay() ? The above code cannot possibly do
> the right thing on all processors.

Since my code is supposed to run when system is crashing, I would like
to avoid calling any function in the kernel as far as possible, since
the kernel and its data structures may be in a inconsistent state
and/or corrupted.

I do realize that the above code does not provide accurate
delay and may not work on all platforms. In that direction
I was considering using the loops_per_jiffy variable
which may provide more accurate/platform-independent delay (?) ..


--


Thanks and Regards,
Srivatsa Vaddagiri,
Linux Technology Center,
IBM Software Labs,
Bangalore, INDIA - 560033
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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