[PATCH] powerpc: Fix windfarm_pm112 not starting all control loops

This adds a couple of printk's to windfarm_pm112 to display which
control loops are actually starting and fixes a bug where it would not
start all loops.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by Benjamin Herrenschmidt and committed by Paul Mackerras e2a002b9 b55fafc5

+4 -2
+4 -2
drivers/macintosh/windfarm_pm112.c
··· 358 358 return; 359 359 if (!backside_tick) { 360 360 /* first time; initialize things */ 361 + printk(KERN_INFO "windfarm: Backside control loop started.\n"); 361 362 backside_param.min = backside_fan->ops->get_min(backside_fan); 362 363 backside_param.max = backside_fan->ops->get_max(backside_fan); 363 364 wf_pid_init(&backside_pid, &backside_param); ··· 408 407 return; 409 408 if (!drive_bay_tick) { 410 409 /* first time; initialize things */ 410 + printk(KERN_INFO "windfarm: Drive bay control loop started.\n"); 411 411 drive_bay_prm.min = drive_bay_fan->ops->get_min(drive_bay_fan); 412 412 drive_bay_prm.max = drive_bay_fan->ops->get_max(drive_bay_fan); 413 413 wf_pid_init(&drive_bay_pid, &drive_bay_prm); ··· 460 458 return; 461 459 if (!slots_started) { 462 460 /* first time; initialize things */ 461 + printk(KERN_INFO "windfarm: Slots control loop started.\n"); 463 462 wf_pid_init(&slots_pid, &slots_param); 464 463 slots_started = 1; 465 464 } ··· 507 504 508 505 if (!started) { 509 506 started = 1; 507 + printk(KERN_INFO "windfarm: CPUs control loops started.\n"); 510 508 for (i = 0; i < nr_cores; ++i) { 511 509 if (create_cpu_loop(i) < 0) { 512 510 failure_state = FAILURE_PERM; ··· 598 594 { 599 595 unsigned int i; 600 596 601 - if (have_all_sensors) 602 - return; 603 597 if (!strncmp(sr->name, "cpu-temp-", 9)) { 604 598 i = sr->name[9] - '0'; 605 599 if (sr->name[10] == 0 && i < NR_CORES &&