Re: [PATCH] tweak spin logic for hpilo

From: Robert Hancock
Date: Tue Mar 10 2009 - 19:37:30 EST


Altobelli, David wrote:
From: Andrew Morton
David Altobelli wrote:
Change hpilo open and close logic to spin for 10usec between checking
device, rather than every usec.
err.. Why?

Because the loop is coded to take up to 10ms, it seemed prudent to increase
the interval between polling the device, to reduce the load on the system and
allow more other work to happen.

You're using udelay, which is a spin loop. Nothing else can happen on that CPU while it's delaying anyway.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/