- Update Xen patches to 3.3-rc5 and c/s 1157.
[linux-flexiantxendom0-3.2.10.git] / arch / x86 / kernel / apic / apic-xen.c
1 /*
2  *      Local APIC handling stubs
3  */
4
5 #include <linux/init.h>
6 #include <linux/interrupt.h>
7
8 #include <asm/smp.h>
9 #include <asm/proto.h>
10 #include <asm/apic.h>
11
12 unsigned int num_processors;
13
14 /*
15  * Debug level, exported for io_apic.c
16  */
17 unsigned int apic_verbosity;
18
19 /* Have we found an MP table */
20 int smp_found_config;
21
22 static int __init apic_set_verbosity(char *arg)
23 {
24         if (!arg)  {
25 #ifdef CONFIG_X86_64
26                 skip_ioapic_setup = 0;
27                 return 0;
28 #endif
29                 return -EINVAL;
30         }
31
32         if (strcmp("debug", arg) == 0)
33                 apic_verbosity = APIC_DEBUG;
34         else if (strcmp("verbose", arg) == 0)
35                 apic_verbosity = APIC_VERBOSE;
36         else {
37                 pr_warning("APIC Verbosity level %s not recognised"
38                         " use apic=verbose or apic=debug\n", arg);
39                 return -EINVAL;
40         }
41
42         return 0;
43 }
44 early_param("apic", apic_set_verbosity);
45
46 int setup_profiling_timer(unsigned int multiplier)
47 {
48         return -EINVAL;
49 }
50
51 #ifndef CONFIG_SMP
52 /*
53  * This initializes the IO-APIC and APIC hardware if this is
54  * a UP kernel.
55  */
56 int __init APIC_init_uniprocessor(void)
57 {
58 #ifdef CONFIG_X86_IO_APIC
59         if (smp_found_config && !skip_ioapic_setup && nr_ioapics)
60                 setup_IO_APIC();
61 # ifdef CONFIG_X86_64
62         else
63                 nr_ioapics = 0;
64 # endif
65 #endif
66
67         return 0;
68 }
69 #endif