fix(atom): properly detect Nxxx Atom series

This commit is contained in:
Stéphane Lesimple 2018-01-17 11:07:47 +01:00
parent 556951d5f0
commit 5b6e39916d

View File

@ -171,7 +171,9 @@ is_cpu_vulnerable()
# Intel # Intel
# Old Atoms are not vulnerable to spectre 2 nor meltdown # Old Atoms are not vulnerable to spectre 2 nor meltdown
# https://security-center.intel.com/advisory.aspx?intelid=INTEL-SA-00088&languageid=en-fr # https://security-center.intel.com/advisory.aspx?intelid=INTEL-SA-00088&languageid=en-fr
if grep -qE '^model name.+ Atom\(TM\) CPU +(S|D|N|230|330)' /proc/cpuinfo; then # model name : Genuine Intel(R) CPU N270 @ 1.60GHz
# model name : Intel(R) Atom(TM) CPU 330 @ 1.60GHz
if grep -qE '^model name.+ Intel\(R\) (Atom\(TM\) CPU +(S|D|230|330)|CPU N\d{3} )' /proc/cpuinfo; then
variant2=1 variant2=1
variant3=1 variant3=1
fi fi