hrtimer.c devinit vs. cpuinit
Hi,
Looking through hrtimer.c I noticed
static void __devinit init_hrtimers_cpu(int cpu)
static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu)
Couldn't the first be __cpuinit as well?
johannes
Quoted 11 lines · Johannes Berg
Hi,
Looking through
hrtimer.cI noticedstatic void
__devinitinit_hrtimers_cpu(int cpu)static int
__cpuinithrtimer_cpu_notify(structnotifier_block*self,
unsigned long action, void *hcpu)Couldn't the first be
__cpuinitas well?
As the only user of init_hrtimers_cpu is __cpuinit then it is a bug that init_hrtimers_cpu is __devinit today.
So you are correct and it must be fixed.
Sam