diff options
author | Keir Fraser <keir@xen.org> | 2010-12-24 10:10:45 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-12-24 10:10:45 +0000 |
commit | 5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a (patch) | |
tree | 2537340f7328351fb2f462d325a89c42befffc3d /xen/arch/x86/setup.c | |
parent | 53ecc28f0e91051cf7874012ea13a6899910b105 (diff) | |
download | xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.tar.gz xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.tar.bz2 xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.zip |
Use bool_t for various boolean variables
... decreasing cache footprint. As a prerequisite this requires making
cmdline_parse() a little more flexible.
Also remove a few variables altogether, and adjust sections
annotations for several others.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/setup.c')
-rw-r--r-- | xen/arch/x86/setup.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index a577cc0f0f..d6f9e11f59 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -50,7 +50,7 @@ extern u8 boot_edid_info[128]; extern struct boot_video_info boot_vid_info; /* opt_nosmp: If true, secondary processors are ignored. */ -static int __initdata opt_nosmp = 0; +static bool_t __initdata opt_nosmp; boolean_param("nosmp", opt_nosmp); /* maxcpus: maximum number of CPUs to activate. */ @@ -58,7 +58,7 @@ static unsigned int __initdata max_cpus = NR_CPUS; integer_param("maxcpus", max_cpus); /* opt_watchdog: If true, run a watchdog NMI on each processor. */ -static int __initdata opt_watchdog = 0; +static bool_t __initdata opt_watchdog; boolean_param("watchdog", opt_watchdog); /* **** Linux config option: propagated to domain0. */ @@ -80,10 +80,10 @@ boolean_param("noapic", skip_ioapic_setup); /* **** Linux config option: propagated to domain0. */ /* xen_cpuidle: xen control cstate. */ -/*static*/ int xen_cpuidle = -1; +s8 __read_mostly xen_cpuidle = -1; boolean_param("cpuidle", xen_cpuidle); -int early_boot = 1; +bool_t __read_mostly early_boot = 1; cpumask_t __read_mostly cpu_present_map; @@ -103,9 +103,8 @@ struct cpuinfo_x86 __read_mostly boot_cpu_data = { 0, 0, 0, 0, -1 }; unsigned long __read_mostly mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE; -int __read_mostly acpi_disabled; - -int __read_mostly acpi_force; +bool_t __initdata acpi_disabled; +bool_t __initdata acpi_force; static char __initdata acpi_param[10] = ""; static void __init parse_acpi_param(char *s) { @@ -123,10 +122,6 @@ static void __init parse_acpi_param(char *s) acpi_ht = 1; acpi_disabled = 0; } - else if ( !strcmp(s, "strict") ) - { - acpi_strict = 1; - } else if ( !strcmp(s, "ht") ) { if ( !acpi_force ) |