cpufreq: Track cpu managing sysfs kobjects separately
[firefly-linux-kernel-4.4.55.git] / include / linux / cpufreq.h
index 48e37c07eb841c60b6becf55fbe5564df5a0e6d4..29ad97c34fd5cf4bcdeec373d2ad5691bb2ec6c3 100644 (file)
@@ -65,7 +65,9 @@ struct cpufreq_policy {
 
        unsigned int            shared_type; /* ACPI: ANY or ALL affected CPUs
                                                should set cpufreq */
-       unsigned int            cpu;    /* cpu nr of CPU managing this policy */
+       unsigned int            cpu;    /* cpu managing this policy, must be online */
+       unsigned int            kobj_cpu; /* cpu managing sysfs files, can be offline */
+
        struct clk              *clk;
        struct cpufreq_cpuinfo  cpuinfo;/* see above */