diff options
| author | Jim Kukunas <[email protected]> | 2012-11-08 21:47:44 +0000 |
|---|---|---|
| committer | NeilBrown <[email protected]> | 2012-12-13 05:42:01 +0000 |
| commit | 7056741fd9fc14a65608549a4657cf5178f05f63 (patch) | |
| tree | b30504208f8261c4a0a2625169eaff9aa9de544e /lib/raid6/algos.c | |
| parent | md: Update checkpoint of resync/recovery based on time. (diff) | |
| download | kernel-7056741fd9fc14a65608549a4657cf5178f05f63.tar.gz kernel-7056741fd9fc14a65608549a4657cf5178f05f63.zip | |
lib/raid6: Add AVX2 optimized recovery functions
Optimize RAID6 recovery functions to take advantage of
the 256-bit YMM integer instructions introduced in AVX2.
The patch was tested and benchmarked before submission.
However hardware is not yet released so benchmark numbers
cannot be reported.
Acked-by: "H. Peter Anvin" <[email protected]>
Signed-off-by: Jim Kukunas <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
| -rw-r--r-- | lib/raid6/algos.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 589f5f50ad2e..8b7f55cadb45 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c @@ -72,6 +72,9 @@ EXPORT_SYMBOL_GPL(raid6_datap_recov); const struct raid6_recov_calls *const raid6_recov_algos[] = { #if (defined(__i386__) || defined(__x86_64__)) && !defined(__arch_um__) +#ifdef CONFIG_AS_AVX2 + &raid6_recov_avx2, +#endif &raid6_recov_ssse3, #endif &raid6_recov_intx1, |
