Messages in this thread | ![/](/images/icornerl.gif) | | Date | Wed, 8 Oct 2003 11:34:06 -0700 | From | Stephen Hemminger <> | Subject | Re: [lkcd-devel] Re: [PATCH] Poll-based IDE driver |
| |
On Wed, 8 Oct 2003 17:44:58 +0530 Srivatsa Vaddagiri <vatsa@in.ibm.com> wrote:
> 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.
If your kernel context is alive enough to take the dump, then it should be able to call things like udelay() that don't modify any data. If it can't your hosed already... - 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/
| ![\](/images/icornerr.gif) |