lkml.org 
[lkml]   [2007]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 1/2] ACPI: disable lower idle C-states across suspend/resume
From
Date
Thomas Gleixner <tglx@linutronix.de> writes:
>
> +/*
> + * Suspend / resume control
> + */
> +static int acpi_idle_suspend;
> +
> +int acpi_processor_suspend(struct acpi_device * device, pm_message_t state)
> +{
> + acpi_idle_suspend = 1;
> + return 0;
> +}
> +
> +int acpi_processor_resume(struct acpi_device * device)
> +{
> + acpi_idle_suspend = 0;
> + return 0;
> +}

Instead of the ugly global variable you could you could just change
pm_idle back to NULL (= default_idle) and then later restore it.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-10-01 12:15    [W:0.119 / U:15.560 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site