Commit b2d3d797 authored by Tony Luck's avatar Tony Luck Committed by Herbert Xu

crypto: x86/twofish - Switch to new Intel CPU model defines

New CPU #defines encode vendor and family as well as model.
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1613e604
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
*/ */
#include <asm/cpu_device_id.h>
#include <crypto/algapi.h> #include <crypto/algapi.h>
#include <crypto/twofish.h> #include <crypto/twofish.h>
#include <linux/crypto.h> #include <linux/crypto.h>
...@@ -107,10 +108,10 @@ static bool is_blacklisted_cpu(void) ...@@ -107,10 +108,10 @@ static bool is_blacklisted_cpu(void)
if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL)
return false; return false;
if (boot_cpu_data.x86 == 0x06 && switch (boot_cpu_data.x86_vfm) {
(boot_cpu_data.x86_model == 0x1c || case INTEL_ATOM_BONNELL:
boot_cpu_data.x86_model == 0x26 || case INTEL_ATOM_BONNELL_MID:
boot_cpu_data.x86_model == 0x36)) { case INTEL_ATOM_SALTWELL:
/* /*
* On Atom, twofish-3way is slower than original assembler * On Atom, twofish-3way is slower than original assembler
* implementation. Twofish-3way trades off some performance in * implementation. Twofish-3way trades off some performance in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment