Andy Whitcroft 60b8b1de0d x86 idle: APM requires pm_idle/default_idle unconditionally when a module
[ Also from Ben Hutchings <ben@decadent.org.uk> and Vitaliy Ivanov
  <vitalivanov@gmail.com> ]

Commit 06ae40ce073d ("x86 idle: EXPORT_SYMBOL(default_idle, pm_idle)
only when APM demands it") removed the export for pm_idle/default_idle
unless the apm module was modularised and CONFIG_APM_CPU_IDLE was set.

But the apm module uses pm_idle/default_idle unconditionally,
CONFIG_APM_CPU_IDLE only affects the bios idle threshold.  Adjust the
export accordingly.

[ Used #ifdef instead of #if defined() as it's shorter, and what both
  Ben and Vitaliy used.. Andy, you're out-voted ;)    - Linus ]

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Vitaliy Ivanov <vitalivanov@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-06-14 13:42:20 -07:00
..
2010-07-21 11:33:27 -07:00
2009-07-19 18:27:51 +02:00
2011-03-18 10:39:30 +01:00
2010-08-27 11:12:29 -07:00
2011-03-18 10:39:30 +01:00
2011-02-17 14:59:22 +01:00
2011-03-18 10:39:30 +01:00
2011-03-18 10:39:30 +01:00
2011-01-13 17:32:39 -08:00
2011-03-18 10:39:30 +01:00
2011-03-15 15:34:15 -07:00
2011-05-24 14:33:35 +02:00
2011-02-23 22:27:55 +01:00
2011-05-26 13:51:35 +02:00
2011-03-18 10:39:30 +01:00
2011-03-18 10:39:30 +01:00
2011-01-07 15:08:53 +01:00
2011-03-18 10:39:30 +01:00
2011-01-13 17:32:41 -08:00
2011-03-18 10:39:30 +01:00