m68k: mvme147: Make mvme147_sched_init() __init
Subsystems (2)
PATCH 1/1 m68k: mvme147: Make mvme147_sched_init() __init
mvme147_sched_init() is only used once at init time so it can be made __init and save a few bytes of memory.
Signed-off-by Daniel Palmer <[email protected]>
--- arch/m68k/mvme147/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/m68k/mvme147/config.c +2 -2
@@ -34,7 +34,7 @@static void mvme147_get_model (char *model); -extern void mvme147_sched_init (void ); +static void __init mvme147_sched_init (void );extern int mvme147_hwclk (int ,struct rtc_time *);extern void mvme147_reset (void );
@@ -123,7 +123,7 @@ static irqreturn_t mvme147_timer_int (int irq, void *dev_id) } -void mvme147_sched_init (void ) +static void __init mvme147_sched_init (void ) {if (request_irq (PCC_IRQ_TIMER1 , mvme147_timer_int,IRQF_TIMER ,"timer 1" ,NULL ))
Signature · 1 line
2.43.0
Quoted 4 lines · Daniel Palmer
mvme147_sched_init()is only used once at init time so it can be made__initand save a few bytes of memory.Signed-off-by Daniel Palmer <[email protected]>
Reviewed-by Geert Uytterhoeven <[email protected]>
i.e. will queue in the m68k tree for v6.13.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds