Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PM: sleep: core: mark 2 functions as __init to save some memory

'early_resume_init()' and 'late_resume_init() 'are only called respectively
via 'early_resume_init' and 'late_resume_init'.

They can be marked as __init to save a few bytes of memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[ rjw: Subject edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Christophe JAILLET and committed by
Rafael J. Wysocki
0659d420 48778464

+2 -2
+2 -2
drivers/base/power/trace.c
··· 265 265 .notifier_call = pm_trace_notify, 266 266 }; 267 267 268 - static int early_resume_init(void) 268 + static int __init early_resume_init(void) 269 269 { 270 270 hash_value_early_read = read_magic_time(); 271 271 register_pm_notifier(&pm_trace_nb); 272 272 return 0; 273 273 } 274 274 275 - static int late_resume_init(void) 275 + static int __init late_resume_init(void) 276 276 { 277 277 unsigned int val = hash_value_early_read; 278 278 unsigned int user, file, dev;