arch: Cleanup enable/disable_hlt
enable/disable_hlt() does not need to be exported and can be killed on architectures which do not use it at all. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Paul McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Reviewed-by: Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: Magnus Damm <magnus.damm@gmail.com> Link: http://lkml.kernel.org/r/20130321215233.377959540@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
@@ -29,31 +29,6 @@
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
/*
|
||||
* The hlt_counter, disable_hlt and enable_hlt is just here as a hook if
|
||||
* there would ever be a halt sequence (for power save when idle) with
|
||||
* some largish delay when halting or resuming *and* a driver that can't
|
||||
* afford that delay. The hlt_counter would then be checked before
|
||||
* executing the halt sequence, and the driver marks the unhaltable
|
||||
* region by enable_hlt/disable_hlt.
|
||||
*/
|
||||
|
||||
int cris_hlt_counter=0;
|
||||
|
||||
void disable_hlt(void)
|
||||
{
|
||||
cris_hlt_counter++;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(disable_hlt);
|
||||
|
||||
void enable_hlt(void)
|
||||
{
|
||||
cris_hlt_counter--;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(enable_hlt);
|
||||
|
||||
extern void default_idle(void);
|
||||
|
||||
void (*pm_power_off)(void);
|
||||
|
Reference in New Issue
Block a user