···7575 .resume - A pointer to a per-policy resume function which is called7676 with interrupts disabled and _before_ the governor is started again.77777878- .ready - A pointer to a per-policy ready function which is called after7979- the policy is fully initialized.8080-8178 .attr - A pointer to a NULL-terminated list of "struct freq_attr" which8279 allow to export values to sysfs.8380
···1517151715181518 kobject_uevent(&policy->kobj, KOBJ_ADD);1519151915201520- /* Callback for handling stuff after policy is ready */15211521- if (cpufreq_driver->ready)15221522- cpufreq_driver->ready(policy);15231523-15241520 if (cpufreq_thermal_control_enabled(cpufreq_driver))15251521 policy->cdev = of_cpufreq_cooling_register(policy);15261522
-3
include/linux/cpufreq.h
···367367 int (*suspend)(struct cpufreq_policy *policy);368368 int (*resume)(struct cpufreq_policy *policy);369369370370- /* Will be called after the driver is fully initialized */371371- void (*ready)(struct cpufreq_policy *policy);372372-373370 struct freq_attr **attr;374371375372 /* platform specific boost support code */