... just to make sure it doesn't get used improperly (resulting from
the discussion around what became c/s 24968:
8964c223836c).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
{
struct acpi_processor_power *power;
struct acpi_processor_cx *cx;
- void *mwait_ptr;
if ( (power = processor_powers[smp_processor_id()]) == NULL )
goto default_halt;
if ( (cx = &power->states[power->count-1]) == NULL )
goto default_halt;
- mwait_ptr = (void *)&mwait_wakeup(smp_processor_id());
-
if ( cx->entry_method == ACPI_CSTATE_EM_FFH )
{
+ void *mwait_ptr = &mwait_wakeup(smp_processor_id());
+
/*
* Cache must be flushed as the last operation before sleeping.
* Otherwise, CPU may still hold dirty data, breaking cache coherency,