summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mtrr/main.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-08-21 17:00:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-21 17:00:02 -0700
commit5400743db5a06a4e6e298725a2044c40edcb27b9 (patch)
treefc563d843e5029c2ad278c12daa1fa7ab1806e0f /arch/x86/kernel/cpu/mtrr/main.c
parentd0af9eed5aa91b6b7b5049cae69e5ea956fd85c3 (diff)
x86, mtrr: make mtrr_aps_delayed_init static bool
mtr_aps_delayed_init was declared u32 and made global, but it only ever takes boolean values and is only ever used in arch/x86/kernel/cpu/mtrr/main.c. Declare it "static bool" and remove external references. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/main.c')
-rw-r--r--arch/x86/kernel/cpu/mtrr/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index 7339be0aa58..84e83de5457 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
+++ b/arch/x86/kernel/cpu/mtrr/main.c
@@ -58,7 +58,7 @@ unsigned int mtrr_usage_table[MTRR_MAX_VAR_RANGES];
static DEFINE_MUTEX(mtrr_mutex);
u64 size_or_mask, size_and_mask;
-u32 mtrr_aps_delayed_init;
+static bool mtrr_aps_delayed_init;
static struct mtrr_ops *mtrr_ops[X86_VENDOR_NUM];
@@ -758,7 +758,7 @@ void set_mtrr_aps_delayed_init(void)
if (!use_intel())
return;
- mtrr_aps_delayed_init = 1;
+ mtrr_aps_delayed_init = true;
}
/*
@@ -770,7 +770,7 @@ void mtrr_aps_init(void)
return;
set_mtrr(~0U, 0, 0, 0);
- mtrr_aps_delayed_init = 0;
+ mtrr_aps_delayed_init = false;
}
void mtrr_bp_restore(void)