]> git.baikalelectronics.ru Git - kernel.git/commit
x86: bugfix wbinvd() model check instead of family check
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Fri, 22 May 2009 20:23:37 +0000 (13:23 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 22 May 2009 20:33:27 +0000 (13:33 -0700)
commit538d32dd48e6e62a52eec34ffe52180e139ca375
tree26ae170ba3fd7077c28613f8cc7aba7d1b133430
parent2cbb5c16b510eb68de29e3e0aaa236086caf6da5
x86: bugfix wbinvd() model check instead of family check

wbinvd is supported on all CPUs 486 or later. But,
pageattr.c is checking x86_model >= 4 before wbinvd(), which looks like
an oversight bug. It was first introduced at one place by changeset
71abfa617b9a8e3ef677a0392dd28887cd1ec7a2 and got copied over to second
place in the same file later.

[ Impact: fix missing cache flush on early-model CPUs, potential data corruption ]

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/mm/pageattr.c