Convert __init into __devinit in wakeup path.

Need to ensure all the code slice in the wakeup path still
existing. For this purpose, we have to use __devinit instead
of __init, since the former is null for CONFIG_HOTPLUG while
the latter always causes related code to be free-ed after
first boot.

Later when adding __init to some function, be sure to consider
wakeup case and cpu hotplug!

Signed-off-by <Kevin.Tian@intel.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-07-11 17:57:47 +01:00
1 parent d53485d69b
commit ff3e88f816
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -957,7 +957,7 @@ void __setup_APIC_LVTT(unsigned int clocks)
apic_write_around(APIC_TMICT, clocks/APIC_DIVISOR);
}
static void __init setup_APIC_timer(unsigned int clocks)
static void __devinit setup_APIC_timer(unsigned int clocks)
{
unsigned long flags;
local_irq_save(flags);
+1 -1
View File
@@ -336,7 +336,7 @@ int i8259A_suspend(void)
return 0;
}
void __init init_8259A(int auto_eoi)
void __devinit init_8259A(int auto_eoi)
{
unsigned long flags;
+1 -1
View File
@@ -202,7 +202,7 @@ void release_lapic_nmi(void)
enable_lapic_nmi_watchdog();
}
#define __pminit __init
#define __pminit __devinit
/*
* Activate the NMI watchdog via the local APIC.
+1 -1
View File
@@ -232,7 +232,7 @@ unsigned long do_iret(void)
return 0;
}
void __init percpu_traps_init(void)
void __devinit percpu_traps_init(void)
{
struct tss_struct *tss = &doublefault_tss;
asmlinkage int hypercall(void);
+1 -1
View File
@@ -285,7 +285,7 @@ static int write_stack_trampoline(
return 34;
}
void __init percpu_traps_init(void)
void __devinit percpu_traps_init(void)
{
char *stack_bottom, *stack;
int cpu = smp_processor_id();
+2 -2
View File
@@ -170,7 +170,7 @@ static int ns16550_getc(struct serial_port *port, char *pc)
return 1;
}
static void __init ns16550_init_preirq(struct serial_port *port)
static void __devinit ns16550_init_preirq(struct serial_port *port)
{
struct ns16550 *uart = port->uart;
unsigned char lcr;
@@ -214,7 +214,7 @@ static void __init ns16550_init_preirq(struct serial_port *port)
port->tx_fifo_size = 16;
}
static void __init ns16550_init_postirq(struct serial_port *port)
static void __devinit ns16550_init_postirq(struct serial_port *port)
{
struct ns16550 *uart = port->uart;
int rc, bits;
+2 -2
View File
@@ -348,7 +348,7 @@ int serial_tx_space(int handle)
return SERIAL_TXBUFSZ - (port->txbufp - port->txbufc);
}
void __init serial_init_preirq(void)
void __devinit serial_init_preirq(void)
{
int i;
for ( i = 0; i < ARRAY_SIZE(com); i++ )
@@ -356,7 +356,7 @@ void __init serial_init_preirq(void)
com[i].driver->init_preirq(&com[i]);
}
void __init serial_init_postirq(void)
void __devinit serial_init_postirq(void)
{
int i;
for ( i = 0; i < ARRAY_SIZE(com); i++ )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.