Re: x86: disable preemption in delay_tsc()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Arjan van de Ven <arjan@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Friday, November 16, 2007 - 3:08 am

On Fri, 16 Nov 2007 07:13:32 +0100 Ingo Molnar <mingo@elte.hu> wrote:


And CONFIG_PREEMPT, of course


It sounds like it would work OK.  What is the setup cost for a usleep?  I'd
have thought that code which does something like

	while (i++ < 1000) {
		foo();
		udelay(1);
	}

would take qiute a bit longer with such a change?

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: x86: disable preemption in delay_tsc(), Arjan van de Ven, (Thu Nov 15, 11:41 pm)
Re: x86: disable preemption in delay_tsc(), Avi Kivity, (Fri Nov 16, 4:08 am)
Re: x86: disable preemption in delay_tsc(), Ingo Molnar, (Fri Nov 16, 4:36 am)
[patch] x86: make delay_tsc() preemptible again, Ingo Molnar, (Fri Nov 16, 4:47 am)
Re: [patch] x86: make delay_tsc() preemptible again, Peter Zijlstra, (Fri Nov 16, 5:39 am)
Re: [patch] x86: make delay_tsc() preemptible again, Ingo Molnar, (Fri Nov 16, 6:50 am)
Re: x86: disable preemption in delay_tsc(), Andrew Morton, (Thu Nov 15, 11:52 pm)
Re: x86: disable preemption in delay_tsc(), Ingo Molnar, (Fri Nov 16, 2:13 am)
Re: x86: disable preemption in delay_tsc(), Andrew Morton, (Fri Nov 16, 3:08 am)
Re: x86: disable preemption in delay_tsc(), Ingo Molnar, (Fri Nov 16, 3:17 am)
Re: x86: disable preemption in delay_tsc(), Andrew Morton, (Fri Nov 16, 3:26 am)