Lines 682-688
static int intel_pstate_init_cpu(unsigned int cpunum)
Link Here
|
682 |
{ |
682 |
{ |
683 |
struct cpudata *cpu; |
683 |
struct cpudata *cpu; |
684 |
|
684 |
|
685 |
all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), GFP_KERNEL); |
685 |
if (!all_cpu_data[cpunum]) |
|
|
686 |
all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), |
687 |
GFP_KERNEL); |
686 |
if (!all_cpu_data[cpunum]) |
688 |
if (!all_cpu_data[cpunum]) |
687 |
return -ENOMEM; |
689 |
return -ENOMEM; |
688 |
|
690 |
|
Lines 766-773
static void intel_pstate_stop_cpu(struct cpufreq_policy *policy)
Link Here
|
766 |
|
768 |
|
767 |
del_timer_sync(&all_cpu_data[cpu_num]->timer); |
769 |
del_timer_sync(&all_cpu_data[cpu_num]->timer); |
768 |
intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate); |
770 |
intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate); |
769 |
kfree(all_cpu_data[cpu_num]); |
|
|
770 |
all_cpu_data[cpu_num] = NULL; |
771 |
} |
771 |
} |
772 |
|
772 |
|
773 |
static int intel_pstate_cpu_init(struct cpufreq_policy *policy) |
773 |
static int intel_pstate_cpu_init(struct cpufreq_policy *policy) |
774 |
- |
|
|