diff options
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 2 | ||||
-rw-r--r-- | drivers/cpufreq/pcc-cpufreq.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 07756bddedef..fa8af4ebb1d6 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -727,7 +727,7 @@ static int __init cpufreq_gov_dbs_init(void) | |||
727 | dbs_tuners_ins.down_differential = | 727 | dbs_tuners_ins.down_differential = |
728 | MICRO_FREQUENCY_DOWN_DIFFERENTIAL; | 728 | MICRO_FREQUENCY_DOWN_DIFFERENTIAL; |
729 | /* | 729 | /* |
730 | * In no_hz/micro accounting case we set the minimum frequency | 730 | * In nohz/micro accounting case we set the minimum frequency |
731 | * not depending on HZ, but fixed (very low). The deferred | 731 | * not depending on HZ, but fixed (very low). The deferred |
732 | * timer might skip some samples if idle/sleeping as needed. | 732 | * timer might skip some samples if idle/sleeping as needed. |
733 | */ | 733 | */ |
diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c index 7b0603eb0129..cdc02ac8f41a 100644 --- a/drivers/cpufreq/pcc-cpufreq.c +++ b/drivers/cpufreq/pcc-cpufreq.c | |||
@@ -261,6 +261,9 @@ static int pcc_get_offset(int cpu) | |||
261 | pr = per_cpu(processors, cpu); | 261 | pr = per_cpu(processors, cpu); |
262 | pcc_cpu_data = per_cpu_ptr(pcc_cpu_info, cpu); | 262 | pcc_cpu_data = per_cpu_ptr(pcc_cpu_info, cpu); |
263 | 263 | ||
264 | if (!pr) | ||
265 | return -ENODEV; | ||
266 | |||
264 | status = acpi_evaluate_object(pr->handle, "PCCP", NULL, &buffer); | 267 | status = acpi_evaluate_object(pr->handle, "PCCP", NULL, &buffer); |
265 | if (ACPI_FAILURE(status)) | 268 | if (ACPI_FAILURE(status)) |
266 | return -ENODEV; | 269 | return -ENODEV; |