Skip to content

Commit

Permalink
x86: Consolidate boot cpu timer setup
Browse files Browse the repository at this point in the history
Now that the APIC bringup is consolidated we can move the setup call
for the percpu clock event device to apic_bsp_setup().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/20150115211704.162567839@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Jan 22, 2015
1 parent 374aab3 commit 9c4d9c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2244,6 +2244,8 @@ int __init apic_bsp_setup(bool upmode)
end_local_APIC_setup();
irq_remap_enable_fault_handling();
setup_IO_APIC();
/* Setup local timer */
x86_init.timers.setup_percpu_clockev();
return id;
}

Expand Down Expand Up @@ -2284,8 +2286,6 @@ int __init APIC_init_uniprocessor(void)
default_setup_apic_routing();
verify_local_APIC();
apic_bsp_setup(true);

x86_init.timers.setup_percpu_clockev();
return 0;
}

Expand Down
4 changes: 0 additions & 4 deletions arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,12 +1163,8 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)

cpu0_logical_apicid = apic_bsp_setup(false);

/*
* Set up local APIC timer on boot CPU.
*/
pr_info("CPU%d: ", 0);
print_cpu_info(&cpu_data(0));
x86_init.timers.setup_percpu_clockev();

if (is_uv_system())
uv_system_init();
Expand Down

0 comments on commit 9c4d9c7

Please sign in to comment.