|
@@ -95,7 +95,7 @@ subsys_initcall(register_cpu_capacity_sysctl);
|
|
|
|
|
|
static u32 capacity_scale;
|
|
|
static u32 *raw_capacity;
|
|
|
-bool cap_parsing_failed;
|
|
|
+static bool cap_parsing_failed;
|
|
|
|
|
|
void normalize_cpu_capacity(void)
|
|
|
{
|
|
@@ -210,7 +210,7 @@ static int __init register_cpufreq_notifier(void)
|
|
|
* until we have the necessary code to parse the cpu capacity, so
|
|
|
* skip registering cpufreq notifier.
|
|
|
*/
|
|
|
- if (!acpi_disabled || cap_parsing_failed)
|
|
|
+ if (!acpi_disabled || !raw_capacity)
|
|
|
return -EINVAL;
|
|
|
|
|
|
if (!alloc_cpumask_var(&cpus_to_visit, GFP_KERNEL)) {
|