Lines Matching refs:pm121_cpu_state
457 struct pm121_cpu_state {
463 static struct pm121_cpu_state *pm121_cpu_state;
670 pm121_cpu_state = kmalloc(sizeof(struct pm121_cpu_state),
672 if (pm121_cpu_state == NULL)
674 pm121_cpu_state->ticks = 1;
699 wf_cpu_pid_init(&pm121_cpu_state->pid, &pid_param);
718 static void pm121_cpu_fans_tick(struct pm121_cpu_state *st)
808 for (i = 0; i < pm121_cpu_state->pid.param.history_len; i++)
809 total_power += pm121_cpu_state->pid.powers[i];
811 average_power = total_power / pm121_cpu_state->pid.param.history_len;
820 if (pm121_cpu_state)
821 pm121_cpu_fans_tick(pm121_cpu_state);