mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
[IA64] Delete __cpuinit usage from all ia64 users
The __cpuinit type of throwaway sections might have made sense
some time ago when RAM was more constrained, but now the savings
do not offset the cost and complications. For example, the fix in
commit 5e427ec2d0
("x86: Fix bit corruption at CPU resume time")
is a good example of the nasty type of bugs that can be created
with improper use of the various __init prefixes.
After a discussion on LKML[1] it was decided that cpuinit should go
the way of devinit and be phased out. Once all the users are gone,
we can then finally remove the macros themselves from linux/init.h.
This removes all the ia64 uses of the __cpuinit macros.
[1] https://lkml.org/lkml/2013/5/20/589
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
committed by
Tony Luck
parent
69cbc0464d
commit
ccce9bb83e
@@ -631,7 +631,7 @@ ia64_mca_register_cpev (int cpev)
|
||||
* Outputs
|
||||
* None
|
||||
*/
|
||||
void __cpuinit
|
||||
void
|
||||
ia64_mca_cmc_vector_setup (void)
|
||||
{
|
||||
cmcv_reg_t cmcv;
|
||||
@@ -1814,7 +1814,7 @@ static struct irqaction mca_cpep_irqaction = {
|
||||
* format most of the fields.
|
||||
*/
|
||||
|
||||
static void __cpuinit
|
||||
static void
|
||||
format_mca_init_stack(void *mca_data, unsigned long offset,
|
||||
const char *type, int cpu)
|
||||
{
|
||||
@@ -1844,7 +1844,7 @@ static void * __init_refok mca_bootmem(void)
|
||||
}
|
||||
|
||||
/* Do per-CPU MCA-related initialization. */
|
||||
void __cpuinit
|
||||
void
|
||||
ia64_mca_cpu_init(void *cpu_data)
|
||||
{
|
||||
void *pal_vaddr;
|
||||
@@ -1896,7 +1896,7 @@ ia64_mca_cpu_init(void *cpu_data)
|
||||
PAGE_KERNEL));
|
||||
}
|
||||
|
||||
static void __cpuinit ia64_mca_cmc_vector_adjust(void *dummy)
|
||||
static void ia64_mca_cmc_vector_adjust(void *dummy)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
@@ -1906,7 +1906,7 @@ static void __cpuinit ia64_mca_cmc_vector_adjust(void *dummy)
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
static int __cpuinit mca_cpu_callback(struct notifier_block *nfb,
|
||||
static int mca_cpu_callback(struct notifier_block *nfb,
|
||||
unsigned long action,
|
||||
void *hcpu)
|
||||
{
|
||||
@@ -1922,7 +1922,7 @@ static int __cpuinit mca_cpu_callback(struct notifier_block *nfb,
|
||||
return NOTIFY_OK;
|
||||
}
|
||||
|
||||
static struct notifier_block mca_cpu_notifier __cpuinitdata = {
|
||||
static struct notifier_block mca_cpu_notifier = {
|
||||
.notifier_call = mca_cpu_callback
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user