提交 00f3e755 编写于 作者: B Bartlomiej Zolnierkiewicz 提交者: Rafael J. Wysocki

intel_idle: mark some functions with __init tag

intel_idle_probe() and intel_idle_cpuidle_driver_init() can be marked
with __init tag as they are only called from intel_idle_init().
Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 9d046ccb
...@@ -490,7 +490,7 @@ MODULE_DEVICE_TABLE(x86cpu, intel_idle_ids); ...@@ -490,7 +490,7 @@ MODULE_DEVICE_TABLE(x86cpu, intel_idle_ids);
/* /*
* intel_idle_probe() * intel_idle_probe()
*/ */
static int intel_idle_probe(void) static int __init intel_idle_probe(void)
{ {
unsigned int eax, ebx, ecx; unsigned int eax, ebx, ecx;
const struct x86_cpu_id *id; const struct x86_cpu_id *id;
...@@ -558,7 +558,7 @@ static void intel_idle_cpuidle_devices_uninit(void) ...@@ -558,7 +558,7 @@ static void intel_idle_cpuidle_devices_uninit(void)
* intel_idle_cpuidle_driver_init() * intel_idle_cpuidle_driver_init()
* allocate, initialize cpuidle_states * allocate, initialize cpuidle_states
*/ */
static int intel_idle_cpuidle_driver_init(void) static int __init intel_idle_cpuidle_driver_init(void)
{ {
int cstate; int cstate;
struct cpuidle_driver *drv = &intel_idle_driver; struct cpuidle_driver *drv = &intel_idle_driver;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册