Home
last modified time | relevance | path

Searched refs:pm121_cpu_state (Results 1 – 1 of 1) sorted by relevance

/drivers/macintosh/
Dwindfarm_pm121.c447 struct pm121_cpu_state { struct
453 static struct pm121_cpu_state *pm121_cpu_state; argument
670 pm121_cpu_state = kmalloc(sizeof(struct pm121_cpu_state), in pm121_create_cpu_fans()
672 if (pm121_cpu_state == NULL) in pm121_create_cpu_fans()
674 pm121_cpu_state->ticks = 1; in pm121_create_cpu_fans()
699 wf_cpu_pid_init(&pm121_cpu_state->pid, &pid_param); in pm121_create_cpu_fans()
718 static void pm121_cpu_fans_tick(struct pm121_cpu_state *st) in pm121_cpu_fans_tick()
808 for (i = 0; i < pm121_cpu_state->pid.param.history_len; i++) in pm121_tick()
809 total_power += pm121_cpu_state->pid.powers[i]; in pm121_tick()
811 average_power = total_power / pm121_cpu_state->pid.param.history_len; in pm121_tick()
[all …]