projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
606ee44
)
x86: cpu don't print duplicated vendor string
author
Yinghai Lu
<yhlu.kernel@gmail.com>
Sat, 20 Sep 2008 01:41:16 +0000
(18:41 -0700)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 13 Oct 2008 08:21:21 +0000
(10:21 +0200)
Some CPUs have vendor string in the middle of model_id instead of beginning
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/common.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/common.c
b/arch/x86/kernel/cpu/common.c
index fb789dd9e691cafffb4d25fc0e26b5c35b4c0869..088fbdb6734e3ca90181c17b178c26baaaf07450 100644
(file)
--- a/
arch/x86/kernel/cpu/common.c
+++ b/
arch/x86/kernel/cpu/common.c
@@
-797,7
+797,7
@@
void __cpuinit print_cpu_info(struct cpuinfo_x86 *c)
else if (c->cpuid_level >= 0)
vendor = c->x86_vendor_id;
- if (vendor &&
strncmp(c->x86_model_id, vendor, strlen(vendor)
))
+ if (vendor &&
!strstr(c->x86_model_id, vendor
))
printk(KERN_CONT "%s ", vendor);
if (c->x86_model_id[0])