summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-01-02 23:38:19 +0100
committerRichard Braun <rbraun@sceen.net>2014-01-02 23:38:19 +0100
commit8ad09341a41f54c846296a4265d0914f24e5a69b (patch)
tree46b1454b40e530c414d8ffa1466ac58ce10f6da3 /arch/x86/machine/cpu.c
parent73cb08aea72483f509d774630a63006b9338c1ad (diff)
Declare variables as read mostly where appropriate
Diffstat (limited to 'arch/x86/machine/cpu.c')
-rw-r--r--arch/x86/machine/cpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/machine/cpu.c b/arch/x86/machine/cpu.c
index 4767789a..5cdd85ff 100644
--- a/arch/x86/machine/cpu.c
+++ b/arch/x86/machine/cpu.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2011, 2012, 2013 Richard Braun.
+ * Copyright (c) 2010-2014 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -77,7 +77,7 @@ static struct cpu cpu_array[MAX_CPUS];
* processors are present.
*/
static unsigned int cpu_boot_array_size __initdata;
-unsigned int cpu_array_size;
+unsigned int cpu_array_size __read_mostly;
/*
* Barrier for processor synchronization on kernel entry.
@@ -87,7 +87,7 @@ static unsigned int cpu_mp_synced __initdata;
/*
* Interrupt descriptor table.
*/
-static struct cpu_gate_desc cpu_idt[CPU_IDT_SIZE] __aligned(8);
+static struct cpu_gate_desc cpu_idt[CPU_IDT_SIZE] __aligned(8) __read_mostly;
/*
* Double fault handler, and stack for the main processor.