diff options
| -rw-r--r-- | drivers/cpufreq/intel_pstate.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 39c4f8520848..eab8ccfe6beb 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
| @@ -554,12 +554,7 @@ static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) | |||
| 554 | 554 | ||
| 555 | if (pstate_funcs.get_vid) | 555 | if (pstate_funcs.get_vid) |
| 556 | pstate_funcs.get_vid(cpu); | 556 | pstate_funcs.get_vid(cpu); |
| 557 | 557 | intel_pstate_set_pstate(cpu, cpu->pstate.min_pstate); | |
| 558 | /* | ||
| 559 | * goto max pstate so we don't slow up boot if we are built-in if we are | ||
| 560 | * a module we will take care of it during normal operation | ||
| 561 | */ | ||
| 562 | intel_pstate_set_pstate(cpu, cpu->pstate.max_pstate); | ||
| 563 | } | 558 | } |
| 564 | 559 | ||
| 565 | static inline void intel_pstate_calc_busy(struct cpudata *cpu, | 560 | static inline void intel_pstate_calc_busy(struct cpudata *cpu, |
| @@ -704,11 +699,6 @@ static int intel_pstate_init_cpu(unsigned int cpunum) | |||
| 704 | cpu = all_cpu_data[cpunum]; | 699 | cpu = all_cpu_data[cpunum]; |
| 705 | 700 | ||
| 706 | intel_pstate_get_cpu_pstates(cpu); | 701 | intel_pstate_get_cpu_pstates(cpu); |
| 707 | if (!cpu->pstate.current_pstate) { | ||
| 708 | all_cpu_data[cpunum] = NULL; | ||
| 709 | kfree(cpu); | ||
| 710 | return -ENODATA; | ||
| 711 | } | ||
| 712 | 702 | ||
| 713 | cpu->cpu = cpunum; | 703 | cpu->cpu = cpunum; |
| 714 | 704 | ||
| @@ -719,7 +709,6 @@ static int intel_pstate_init_cpu(unsigned int cpunum) | |||
| 719 | cpu->timer.expires = jiffies + HZ/100; | 709 | cpu->timer.expires = jiffies + HZ/100; |
| 720 | intel_pstate_busy_pid_reset(cpu); | 710 | intel_pstate_busy_pid_reset(cpu); |
| 721 | intel_pstate_sample(cpu); | 711 | intel_pstate_sample(cpu); |
| 722 | intel_pstate_set_pstate(cpu, cpu->pstate.max_pstate); | ||
| 723 | 712 | ||
| 724 | add_timer_on(&cpu->timer, cpunum); | 713 | add_timer_on(&cpu->timer, cpunum); |
| 725 | 714 | ||
