]> Git Repo - u-boot.git/commitdiff
x86: cpu: Make the vendor table const
authorSimon Glass <[email protected]>
Mon, 7 Mar 2016 02:27:57 +0000 (19:27 -0700)
committerBin Meng <[email protected]>
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
arch/x86/cpu/cpu.c

index 6c3a748f75388538fb61ca548718ddde25ae0c9e..8800e09fa2a35a222ea31db0c9019e3000fd371e 100644 (file)
@@ -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[] = {
This page took 0.035272 seconds and 4 git commands to generate.