|
@@ -96,14 +96,14 @@ static int cpu_last_target;
|
|
|
static struct wf_pid_state backside_pid;
|
|
|
static int backside_tick;
|
|
|
static struct wf_pid_state slots_pid;
|
|
|
-static int slots_started;
|
|
|
+static bool slots_started;
|
|
|
static struct wf_pid_state drive_bay_pid;
|
|
|
static int drive_bay_tick;
|
|
|
|
|
|
static int nr_cores;
|
|
|
static int have_all_controls;
|
|
|
static int have_all_sensors;
|
|
|
-static int started;
|
|
|
+static bool started;
|
|
|
|
|
|
static int failure_state;
|
|
|
#define FAILURE_SENSOR 1
|
|
@@ -462,7 +462,7 @@ static void slots_fan_tick(void)
|
|
|
/* first time; initialize things */
|
|
|
printk(KERN_INFO "windfarm: Slots control loop started.\n");
|
|
|
wf_pid_init(&slots_pid, &slots_param);
|
|
|
- slots_started = 1;
|
|
|
+ slots_started = true;
|
|
|
}
|
|
|
|
|
|
err = slots_power->ops->get_value(slots_power, &power);
|
|
@@ -506,7 +506,7 @@ static void pm112_tick(void)
|
|
|
int i, last_failure;
|
|
|
|
|
|
if (!started) {
|
|
|
- started = 1;
|
|
|
+ started = true;
|
|
|
printk(KERN_INFO "windfarm: CPUs control loops started.\n");
|
|
|
for (i = 0; i < nr_cores; ++i) {
|
|
|
if (create_cpu_loop(i) < 0) {
|