summaryrefslogtreecommitdiff
path: root/util/msrtool/intel_atom.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-01-22 22:19:24 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-05-13 10:07:12 +0000
commit199a23cd8ac32236b9112709a6910c4055c71932 (patch)
treebf60362f5021751b37da357eb8989a2e78745999 /util/msrtool/intel_atom.c
parentf5f552afcd471ba7ab9dbd77789f2076af176865 (diff)
mstrool: only use intel targets for actual intel CPUs
VIA c3 & C7 use the the family of 0x6 and model 10, but are not quite Pentium III. Change-Id: I85e9853b42cfd20db46db0bd244620d6813bc826 Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-on: https://review.coreboot.org/18256 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/msrtool/intel_atom.c')
-rw-r--r--util/msrtool/intel_atom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/msrtool/intel_atom.c b/util/msrtool/intel_atom.c
index c055f4cc13..2d89c9c640 100644
--- a/util/msrtool/intel_atom.c
+++ b/util/msrtool/intel_atom.c
@@ -16,8 +16,9 @@
#include "msrtool.h"
int intel_atom_probe(const struct targetdef *target, const struct cpuid_t *id) {
- return (0x6 == id->family) &&
- (0x1c == id->model);
+ return ((VENDOR_INTEL == id->vendor) &&
+ (0x6 == id->family) &&
+ (0x1c == id->model));
}
const struct msrdef intel_atom_msrs[] = {