]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/x86/kernel/x86_init.c
x86: UV SGI: Don't track GRU space in PAT
[net-next-2.6.git] / arch / x86 / kernel / x86_init.c
CommitLineData
57844a8f
TG
1/*
2 * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
3 *
4 * For licencing details see kernel-base/COPYING
5 */
6#include <linux/init.h>
7
816c25e7 8#include <asm/bios_ebda.h>
6f30c1ac 9#include <asm/paravirt.h>
fd6c6661 10#include <asm/mpspec.h>
8fee697d 11#include <asm/setup.h>
736decac 12#include <asm/apic.h>
6b18ae3e 13#include <asm/e820.h>
845b3944 14#include <asm/time.h>
d9112f43 15#include <asm/irq.h>
fd12a0d6 16#include <asm/pat.h>
2d826404 17#include <asm/tsc.h>
57844a8f
TG
18
19void __cpuinit x86_init_noop(void) { }
f4848472 20void __init x86_init_uint_noop(unsigned int unused) { }
030cb6c0 21void __init x86_init_pgd_noop(pgd_t *unused) { }
57844a8f
TG
22
23/*
24 * The platform setup functions are preset with the default functions
25 * for standard PC hardware.
26 */
54e2603f 27struct x86_init_ops x86_init __initdata = {
f7cf5a5b
TG
28
29 .resources = {
30 .probe_roms = x86_init_noop,
8fee697d 31 .reserve_resources = reserve_standard_io_resources,
6b18ae3e 32 .memory_setup = default_machine_specific_memory_setup,
f7cf5a5b 33 },
f4848472
TG
34
35 .mpparse = {
36 .mpc_record = x86_init_uint_noop,
de934103 37 .setup_ioapic_ids = x86_init_noop,
fd6c6661 38 .mpc_apic_id = default_mpc_apic_id,
72302142 39 .smp_read_mpc_oem = default_smp_read_mpc_oem,
90e1c696 40 .mpc_oem_bus_info = default_mpc_oem_bus_info,
b3f1b617
TG
41 .find_smp_config = default_find_smp_config,
42 .get_smp_config = default_get_smp_config,
f4848472 43 },
d9112f43
TG
44
45 .irqs = {
46 .pre_vector_init = init_ISA_irqs,
66bcaf0b 47 .intr_init = native_init_IRQ,
428cf902 48 .trap_init = x86_init_noop,
d9112f43 49 },
42bbdb43
TG
50
51 .oem = {
52 .arch_setup = x86_init_noop,
6f30c1ac 53 .banner = default_banner,
42bbdb43 54 },
030cb6c0
TG
55
56 .paging = {
57 .pagetable_setup_start = native_pagetable_setup_start,
58 .pagetable_setup_done = native_pagetable_setup_done,
59 },
736decac
TG
60
61 .timers = {
62 .setup_percpu_clockev = setup_boot_APIC_clock,
845b3944
TG
63 .tsc_pre_init = x86_init_noop,
64 .timer_init = hpet_time_init,
736decac
TG
65 },
66};
67
54e2603f 68struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
736decac 69 .setup_percpu_clockev = setup_secondary_APIC_clock,
57844a8f 70};
2d826404
TG
71
72struct x86_platform_ops x86_platform = {
fd12a0d6 73 .is_untracked_pat_range = default_is_untracked_pat_range,
2d826404 74 .calibrate_tsc = native_calibrate_tsc,
7bd867df
FT
75 .get_wallclock = mach_get_cmos_time,
76 .set_wallclock = mach_set_rtc_mmss,
2d826404 77};