]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/cpuidle/driver.c
cpuidle: make cpuidle_curr_driver static
[net-next-2.6.git] / drivers / cpuidle / driver.c
index 826b5c0aa12bb3cd7147ad624ae14861288c620a..fd1601e3d1250faaa3b4863eb27706529076bcb1 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "cpuidle.h"
 
-struct cpuidle_driver *cpuidle_curr_driver;
+static struct cpuidle_driver *cpuidle_curr_driver;
 DEFINE_SPINLOCK(cpuidle_driver_lock);
 
 /**
@@ -39,6 +39,15 @@ int cpuidle_register_driver(struct cpuidle_driver *drv)
 
 EXPORT_SYMBOL_GPL(cpuidle_register_driver);
 
+/**
+ * cpuidle_get_driver - return the current driver
+ */
+struct cpuidle_driver *cpuidle_get_driver(void)
+{
+       return cpuidle_curr_driver;
+}
+EXPORT_SYMBOL_GPL(cpuidle_get_driver);
+
 /**
  * cpuidle_unregister_driver - unregisters a driver
  * @drv: the driver