summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-06 19:27:57 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-03-17 10:27:23 +0800
commit6d24a1eebe5685d1ed7c1e066e333ff4cc795367 (patch)
tree87dc4be092616669753533da1592a073b02368cc
parent9a01cca75067496b28e9b81477e80953b7a96857 (diff)
downloadu-boot-imx-6d24a1eebe5685d1ed7c1e066e333ff4cc795367.zip
u-boot-imx-6d24a1eebe5685d1ed7c1e066e333ff4cc795367.tar.gz
u-boot-imx-6d24a1eebe5685d1ed7c1e066e333ff4cc795367.tar.bz2
x86: cpu: Make the vendor table const
This does not need to be modified at run-time, so make it const. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--arch/x86/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 6c3a748..8800e09 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -71,7 +71,7 @@ struct cpuinfo_x86 {
* List of cpu vendor strings along with their normalized
* id values.
*/
-static struct {
+static const struct {
int vendor;
const char *name;
} x86_vendors[] = {