crc32:Adjust hardware folding algorithm flags

Hardware folding algorithm depend on CRC32 and PMULL instruction.
And it should match both flags .

Change-Id: I361068402db1fe6d7c0bd8d2c7048f1d94880233
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2020-04-03 16:52:47 +08:00
parent 0033f42189
commit 9bcd6768fd

View File

@ -73,9 +73,9 @@ DEFINE_INTERFACE_DISPATCHER(crc32_iscsi)
case MICRO_ARCH_ID(ARM, NEOVERSE_N1):
return PROVIDER_INFO(crc32c_mix_neoverse_n1);
}
}
if (auxval & HWCAP_CRC32)
return PROVIDER_INFO(crc32_iscsi_refl_hw_fold);
}
if (auxval & HWCAP_PMULL) {
return PROVIDER_INFO(crc32_iscsi_refl_pmull);
}
@ -98,9 +98,9 @@ DEFINE_INTERFACE_DISPATCHER(crc32_gzip_refl)
case MICRO_ARCH_ID(ARM, NEOVERSE_N1):
return PROVIDER_INFO(crc32_mix_neoverse_n1);
}
}
if (auxval & HWCAP_CRC32)
return PROVIDER_INFO(crc32_gzip_refl_hw_fold);
}
if (auxval & HWCAP_PMULL)
return PROVIDER_INFO(crc32_gzip_refl_pmull);