projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a01cca
)
x86: cpu: Make the vendor table const
author
Simon Glass
<sjg@chromium.org>
Mon, 7 Mar 2016 02:27:57 +0000
(19:27 -0700)
committer
Bin Meng
<bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:23 +0000
(10:27 +0800)
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>
arch/x86/cpu/cpu.c
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/cpu.c
b/arch/x86/cpu/cpu.c
index 6c3a748f75388538fb61ca548718ddde25ae0c9e..8800e09fa2a35a222ea31db0c9019e3000fd371e 100644
(file)
--- 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[] = {