mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
drop empty __devinit annotation, and aliased __pminit
x86 is the only architecture which uses __devinit, and also has CONFIG_HOTPLUG enabled, making the annotation empty. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
e9c8958b4b
commit
ea953e8fbd
10 files changed
+23
-27
No files matched your search
+3
-3
@@ -521,7 +521,7 @@ out:
|
||||
free_ioapic_entries(ioapic_entries);
|
||||
}
|
||||
|
||||
void __devinit setup_local_APIC(void)
|
||||
void setup_local_APIC(void)
|
||||
{
|
||||
unsigned long oldvalue, value, ver, maxlvt;
|
||||
int i, j;
|
||||
@@ -1087,7 +1087,7 @@ static void __setup_APIC_LVTT(unsigned int clocks)
|
||||
apic_write_around(APIC_TMICT, clocks/APIC_DIVISOR);
|
||||
}
|
||||
|
||||
static void __devinit setup_APIC_timer(void)
|
||||
static void setup_APIC_timer(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
local_irq_save(flags);
|
||||
@@ -1199,7 +1199,7 @@ void __init setup_boot_APIC_clock(void)
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
void __devinit setup_secondary_APIC_clock(void)
|
||||
void setup_secondary_APIC_clock(void)
|
||||
{
|
||||
setup_APIC_timer();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ static const struct cpuidmask *__init noinline get_cpuidmask(const char *opt)
|
||||
*
|
||||
* The processor revision string parameter has precedene.
|
||||
*/
|
||||
static void __devinit set_cpuidmask(const struct cpuinfo_x86 *c)
|
||||
static void set_cpuidmask(const struct cpuinfo_x86 *c)
|
||||
{
|
||||
static unsigned int feat_ecx, feat_edx;
|
||||
static unsigned int extfeat_ecx, extfeat_edx;
|
||||
@@ -383,7 +383,7 @@ static void check_syscfg_dram_mod_en(void)
|
||||
wrmsrl(MSR_K8_SYSCFG, syscfg);
|
||||
}
|
||||
|
||||
static void __devinit amd_get_topology(struct cpuinfo_x86 *c)
|
||||
static void amd_get_topology(struct cpuinfo_x86 *c)
|
||||
{
|
||||
int cpu;
|
||||
unsigned bits;
|
||||
@@ -424,7 +424,7 @@ static void __devinit amd_get_topology(struct cpuinfo_x86 *c)
|
||||
c->cpu_core_id);
|
||||
}
|
||||
|
||||
static void __devinit init_amd(struct cpuinfo_x86 *c)
|
||||
static void init_amd(struct cpuinfo_x86 *c)
|
||||
{
|
||||
u32 l, h;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ void set_cpuid_faulting(bool_t enable)
|
||||
* edx = 0xBFEBFBFF when executing CPUID.EAX = 1 normally. If you want to
|
||||
* 'rev down' to E8400, you can set these values in these Xen boot parameters.
|
||||
*/
|
||||
static void __devinit set_cpuidmask(const struct cpuinfo_x86 *c)
|
||||
static void set_cpuidmask(const struct cpuinfo_x86 *c)
|
||||
{
|
||||
static unsigned int msr_basic, msr_ext, msr_xsave;
|
||||
static enum { not_parsed, no_mask, set_mask } status;
|
||||
@@ -191,7 +191,7 @@ static void early_init_intel(struct cpuinfo_x86 *c)
|
||||
* Xeon 7400 erratum AAI65 (and further newer Xeons)
|
||||
* MONITOR/MWAIT may have excessive false wakeups
|
||||
*/
|
||||
static void __devinit Intel_errata_workarounds(struct cpuinfo_x86 *c)
|
||||
static void Intel_errata_workarounds(struct cpuinfo_x86 *c)
|
||||
{
|
||||
unsigned long lo, hi;
|
||||
|
||||
@@ -214,7 +214,7 @@ static void __devinit Intel_errata_workarounds(struct cpuinfo_x86 *c)
|
||||
/*
|
||||
* find out the number of processor cores on the die
|
||||
*/
|
||||
static int __devinit num_cpu_cores(struct cpuinfo_x86 *c)
|
||||
static int num_cpu_cores(struct cpuinfo_x86 *c)
|
||||
{
|
||||
unsigned int eax, ebx, ecx, edx;
|
||||
|
||||
@@ -229,7 +229,7 @@ static int __devinit num_cpu_cores(struct cpuinfo_x86 *c)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void __devinit init_intel(struct cpuinfo_x86 *c)
|
||||
static void init_intel(struct cpuinfo_x86 *c)
|
||||
{
|
||||
unsigned int l2 = 0;
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ int i8259A_suspend(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __devinit init_8259A(int auto_eoi)
|
||||
void init_8259A(int auto_eoi)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
|
||||
@@ -124,8 +124,8 @@ static int __init mpf_checksum(unsigned char *mp, int len)
|
||||
}
|
||||
|
||||
/* Return xen's logical cpu_id of the new added cpu or <0 if error */
|
||||
static int __devinit MP_processor_info_x(struct mpc_config_processor *m,
|
||||
u32 apicid, bool_t hotplug)
|
||||
static int MP_processor_info_x(struct mpc_config_processor *m,
|
||||
u32 apicid, bool_t hotplug)
|
||||
{
|
||||
int ver, cpu = 0;
|
||||
|
||||
@@ -190,7 +190,7 @@ static int __devinit MP_processor_info_x(struct mpc_config_processor *m,
|
||||
return cpu;
|
||||
}
|
||||
|
||||
static int __devinit MP_processor_info(struct mpc_config_processor *m)
|
||||
static int MP_processor_info(struct mpc_config_processor *m)
|
||||
{
|
||||
return MP_processor_info_x(m, m->mpc_apicid, 0);
|
||||
}
|
||||
@@ -787,7 +787,7 @@ void __init mp_register_lapic_address (
|
||||
}
|
||||
|
||||
|
||||
int __devinit mp_register_lapic (
|
||||
int mp_register_lapic (
|
||||
u32 id,
|
||||
bool_t enabled,
|
||||
bool_t hotplug)
|
||||
|
||||
+5
-7
@@ -254,14 +254,12 @@ void release_lapic_nmi(void)
|
||||
enable_lapic_nmi_watchdog();
|
||||
}
|
||||
|
||||
#define __pminit __devinit
|
||||
|
||||
/*
|
||||
* Activate the NMI watchdog via the local APIC.
|
||||
* Original code written by Keith Owens.
|
||||
*/
|
||||
|
||||
static void __pminit clear_msr_range(unsigned int base, unsigned int n)
|
||||
static void clear_msr_range(unsigned int base, unsigned int n)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
@@ -279,7 +277,7 @@ static inline void write_watchdog_counter(const char *descr)
|
||||
wrmsrl(nmi_perfctr_msr, 0 - count);
|
||||
}
|
||||
|
||||
static void __pminit setup_k7_watchdog(void)
|
||||
static void setup_k7_watchdog(void)
|
||||
{
|
||||
unsigned int evntsel;
|
||||
|
||||
@@ -300,7 +298,7 @@ static void __pminit setup_k7_watchdog(void)
|
||||
wrmsr(MSR_K7_EVNTSEL0, evntsel, 0);
|
||||
}
|
||||
|
||||
static void __pminit setup_p6_watchdog(unsigned counter)
|
||||
static void setup_p6_watchdog(unsigned counter)
|
||||
{
|
||||
unsigned int evntsel;
|
||||
|
||||
@@ -321,7 +319,7 @@ static void __pminit setup_p6_watchdog(unsigned counter)
|
||||
wrmsr(MSR_P6_EVNTSEL(0), evntsel, 0);
|
||||
}
|
||||
|
||||
static int __pminit setup_p4_watchdog(void)
|
||||
static int setup_p4_watchdog(void)
|
||||
{
|
||||
uint64_t misc_enable;
|
||||
|
||||
@@ -359,7 +357,7 @@ static int __pminit setup_p4_watchdog(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void __pminit setup_apic_nmi_watchdog(void)
|
||||
void setup_apic_nmi_watchdog(void)
|
||||
{
|
||||
if ( nmi_watchdog == NMI_NONE )
|
||||
return;
|
||||
|
||||
@@ -195,7 +195,7 @@ static void __init init_idle_domain(void)
|
||||
this_cpu(curr_vcpu) = current;
|
||||
}
|
||||
|
||||
void __devinit srat_detect_node(int cpu)
|
||||
void srat_detect_node(int cpu)
|
||||
{
|
||||
nodeid_t node;
|
||||
u32 apicid = x86_cpu_to_apicid[cpu];
|
||||
|
||||
@@ -3616,7 +3616,7 @@ void load_TR(void)
|
||||
: "=m" (old_gdt) : "rm" (TSS_ENTRY << 3), "m" (tss_gdt) : "memory" );
|
||||
}
|
||||
|
||||
void __devinit percpu_traps_init(void)
|
||||
void percpu_traps_init(void)
|
||||
{
|
||||
subarch_percpu_traps_init();
|
||||
|
||||
|
||||
@@ -371,7 +371,7 @@ DEFINE_PER_CPU(struct stubs, stubs);
|
||||
void lstar_enter(void);
|
||||
void cstar_enter(void);
|
||||
|
||||
void __devinit subarch_percpu_traps_init(void)
|
||||
void subarch_percpu_traps_init(void)
|
||||
{
|
||||
unsigned long stack_bottom = get_stack_bottom();
|
||||
unsigned long stub_va = this_cpu(stubs.addr);
|
||||
|
||||
@@ -118,11 +118,9 @@ extern struct kernel_param __setup_start, __setup_end;
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
#define __devinit
|
||||
#define __devexit
|
||||
#define __devexitdata
|
||||
#else
|
||||
#define __devinit __init
|
||||
#define __devexit __exit
|
||||
#define __devexitdata __exitdata
|
||||
#endif
|
||||
|
||||