init: use SYS_INIT() where it makes sense
Mostly SoC initialization and some kernel subsystems, but also some device drivers like the interrupt controllers. Change-Id: I8dc1844c33acd877c075b6b03558fdca6f87500b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
629e1dd861
commit
a4ec963138
21 changed files with 26 additions and 69 deletions
|
@ -62,6 +62,4 @@ int _i8259_init(struct device *unused)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_INIT(pic_0, "", _i8259_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(_i8259_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -314,6 +314,4 @@ static void _IoApicRedUpdateLo(unsigned int irq,
|
|||
ioApicRedSetLo(irq, (ioApicRedGetLo(irq) & ~mask) | (value & mask));
|
||||
}
|
||||
|
||||
DEVICE_INIT(ioapic_0, "", _ioapic_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(_ioapic_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -444,9 +444,7 @@ int _loapic_isr_vector_get(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_INIT(loapic_0, "", _loapic_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(_loapic_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
||||
#if CONFIG_LOAPIC_SPURIOUS_VECTOR
|
||||
extern void _loapic_spurious_handler(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue