[CPUFREQ] cpufreq_stats: misc cpuinit section annotations
commit55395ae72b6e5ae614d28df74158c47454652583
authorSatyam Sharma <satyam@infradead.org>
Tue, 2 Oct 2007 20:28:15 +0000 (2 13:28 -0700)
committerDave Jones <davej@redhat.com>
Thu, 4 Oct 2007 22:40:57 +0000 (4 18:40 -0400)
tree1e78d5102b5ad87ae304103699c0c36b75627b41
parent6070b5de50ab5e3f810628a9cbb04deecf30a85f
[CPUFREQ] cpufreq_stats: misc cpuinit section annotations

* Stop referencing the callback directly from the __init and __exit
  functions of this driver, and instead explicitly call
  cpufreq_update_policy() et al. This enables the callback function
  to be marked as __cpuinit (and the notifier_block __cpuinitdata),
  thereby saving space when HOTPLUG_CPU=n. This also enables us to
  use other tricks to replace __cpuinit{data} in future.

* cpufreq_stats_free_table() is only called from __cpuinit or __exit
  marked functions, making it an ideal candidate for __cpuexit.

* Fix missing space in the module description

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq_stats.c