Re: [PATCH] Remove RCU abuse in cpu_idle()

From: Zwane Mwaikambo
Date: Sun Dec 19 2004 - 20:04:22 EST


On Sat, 18 Dec 2004, Nish Aravamudan wrote:

> All of these schedule_timeout() calls are broken. They do not set the
> state before hand and therefore will return early. Since you're not
> checking for signals and there are no waitqueue events around the
> code, I'm assuming you can just use ssleep(1) instead of the current
> schedule_timeout() calls.

Returning early is fine (and will happen if the other processors are
busy), we're spinning on a condition, but yes ssleep() could be used
instead.

Thanks,
Zwane

-
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/