Re: [RFC] Extend mwait idle to optimize away IPIs when possible

From: Venki Pallipadi
Date: Mon Feb 06 2012 - 21:03:28 EST

On Mon, Feb 6, 2012 at 5:45 PM, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
> On 02/06/2012 05:34 PM, David Daney wrote:
>> Well I don't know that part. The gist of my comment was to get rid of an
>> unneeded new config variable.
>> If this works just as well for 32-bit, then by all means do it there too.
>> In any event, I think you want the kernel to automatically do it if the
>> CPU is capable, and not have a manual config setting you have to fiddle
>> with.
> If this is a transitional thing then it might justify it.

There is nothing specific to 64 bit here. Its just that I had only
tested this on 64 bit right now and wanted to get early feedback. So,
in the spirit of RFC, I sent this out as x86_64 only for the time
being. If and when this will be sent for inclusion, this will should
work on both 32 bit and 64 bit on x86. Though we will need a config
option to not add any run time overhead in generic code (and to not
have #ifdef CONFIG_X86 in kernel/).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at