[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F79E83C.5090506@amd.com>
Date: Mon, 2 Apr 2012 13:56:12 -0400
From: Boris Ostrovsky <boris.ostrovsky@....com>
To: Tony Luck <tony.luck@...el.com>
CC: Len Brown <lenb@...nel.org>, <linux-acpi@...r.kernel.org>,
<linux-pm@...ts.linux-foundation.org>,
<linux-kernel@...r.kernel.org>, Len Brown <len.brown@...el.com>
Subject: Re: [PATCH 58/76] idle, x86: Allow off-lined CPU to enter deeper
C states
On 04/02/12 13:25, Tony Luck wrote:
>>> + while (1) {
>>> +
>>> + if (cx->entry_method == ACPI_CSTATE_HALT)
>>> + halt();
>
> What's the intent here? I think that I can just set up a function pointer
> named "halt" on ia64 and point it to my cpu_halt() function (which looks
> for the deepest C-state, and then calls PAL to enter it. Is that equivalent
> to what the x86 "halt()" function does?
x86 halt() causes processor to go to C1 state (which is often not the
deepest). But other than that it seems similar to what you are describing.
However, the fix that you are proposing will only help ia64 and I wonder
whether others architectures may have the same problem?
(And I don't think inb/inl should cause you any trouble since they are
already used, for example, in acpi_idle_do_entry())
-boris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists