Re: [patch] fix delay_tsc (was Re: delay_tsc(): inefficient delay loop (2.6.16-mm1))

From: Andi Kleen
Date: Sun Mar 26 2006 - 19:16:52 EST



> I'm running a system with this applied now. I think there are still
> problems if someone uses huge delays, though. What keeps someone from
> trying to delay for > 2^31 cycles?

You shouldn't. The caller has a compile time check for that. And if you pass
in dynamic values you get what you deserve.

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