aboutsummaryrefslogtreecommitdiff
path: root/drivers/firewire
diff options
context:
space:
mode:
authorGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2020-02-06 18:41:24 +0100
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2020-02-11 23:34:57 +0100
commit7f843dd71258ca0e01674be1008eca98917f3f9f (patch)
tree0547e29c643bfc271886191f95e4edd2f7b0b4e5 /drivers/firewire
parentintel_idle: Relocate definitions of cpuidle callbacks (diff)
downloadlinux-7f843dd71258ca0e01674be1008eca98917f3f9f.tar.gz
linux-7f843dd71258ca0e01674be1008eca98917f3f9f.tar.bz2
linux-7f843dd71258ca0e01674be1008eca98917f3f9f.zip
intel_idle: Add __initdata annotations to init time variables
Annotate static variables cpuidle_state_table and mwait_substates with __initdata, because they are only used during the initialization of the driver. Also notice that static variable icpu could be annotated analogously and the structure pointed to by it could be __initconst, but two of its fields are accessed via icpu in intel_idle_cpu_init() and auto_demotion_disable(), so introduce two new static variables, auto_demotion_disable_flags and disable_promotion_to_c1e, to hold the values of these fields, set them during the initialization and use them in those functions instead of accessing the source data structure via icpu. That allows icpu to be annotated with __initdata, so do that, and it will also allow some __initconst annotations to be added subsequently. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions