kernel: better document the use_mm/unuse_mm API contract
[linux-2.6-microblaze.git] / kernel / cpu_pm.c
index cbca687..44a2593 100644 (file)
@@ -80,7 +80,7 @@ EXPORT_SYMBOL_GPL(cpu_pm_unregister_notifier);
  */
 int cpu_pm_enter(void)
 {
-       int nr_calls;
+       int nr_calls = 0;
        int ret = 0;
 
        ret = cpu_pm_notify(CPU_PM_ENTER, -1, &nr_calls);
@@ -131,7 +131,7 @@ EXPORT_SYMBOL_GPL(cpu_pm_exit);
  */
 int cpu_cluster_pm_enter(void)
 {
-       int nr_calls;
+       int nr_calls = 0;
        int ret = 0;
 
        ret = cpu_pm_notify(CPU_CLUSTER_PM_ENTER, -1, &nr_calls);