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