Re: invalidate caches before going into suspend

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mark Langsdorf <mark.langsdorf@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, H. Peter Anvin <hpa@...>, Thomas Gleixner <tglx@...>
Date: Wednesday, August 13, 2008 - 1:17 pm

On Wed, 13 Aug 2008, Mark Langsdorf wrote:

Why not at least move it to after the local_irq_disable()?

That local_irq_disable() will do tons of writes if you have 
lockdep enabled, it calls trace_hardirqs_off() etc. Maybe they don't end 
up ever mattering, but wouldn't it make much more sense to just move the 
wbinvd down to just before the

	while (1)
		halt();

which is also likely to make sure that the compiler won't do anything at 
all because everything is dead at that point with no function calls etc 
happening.

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

Messages in current thread:
invalidate caches before going into suspend, Mark Langsdorf, (Wed Aug 13, 12:41 pm)
Re: invalidate caches before going into suspend, Andi Kleen, (Wed Aug 13, 3:39 pm)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 12:47 pm)
Re: invalidate caches before going into suspend, Mark Langsdorf, (Wed Aug 13, 1:09 pm)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 1:38 pm)
Re: invalidate caches before going into suspend, Linus Torvalds, (Wed Aug 13, 1:17 pm)
Re: invalidate caches before going into suspend, Mark Langsdorf, (Wed Aug 13, 1:30 pm)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 1:52 pm)
Re: [PATCH](retry 3) invalidate caches before going into sus..., Arjan van de Ven, (Thu Aug 14, 10:00 am)
Re: invalidate caches before going into suspend, H. Peter Anvin, (Wed Aug 13, 12:53 pm)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 1:01 pm)
Re: invalidate caches before going into suspend, H. Peter Anvin, (Wed Aug 13, 1:28 pm)
Re: invalidate caches before going into suspend, Ingo Molnar, (Wed Aug 13, 1:35 pm)
Re: invalidate caches before going into suspend, H. Peter Anvin, (Wed Aug 13, 1:37 pm)