.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | #ifndef _ASM_X86_XOR_AVX_H |
---|
2 | 3 | #define _ASM_X86_XOR_AVX_H |
---|
3 | 4 | |
---|
.. | .. |
---|
8 | 9 | * Author: Jim Kukunas <james.t.kukunas@linux.intel.com> |
---|
9 | 10 | * |
---|
10 | 11 | * Based on Ingo Molnar and Zach Brown's respective MMX and SSE routines |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or |
---|
13 | | - * modify it under the terms of the GNU General Public License |
---|
14 | | - * as published by the Free Software Foundation; version 2 |
---|
15 | | - * of the License. |
---|
16 | 12 | */ |
---|
17 | | - |
---|
18 | | -#ifdef CONFIG_AS_AVX |
---|
19 | 13 | |
---|
20 | 14 | #include <linux/compiler.h> |
---|
21 | 15 | #include <asm/fpu/api.h> |
---|
.. | .. |
---|
174 | 168 | #define AVX_SELECT(FASTEST) \ |
---|
175 | 169 | (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST) |
---|
176 | 170 | |
---|
177 | | -#else |
---|
178 | | - |
---|
179 | | -#define AVX_XOR_SPEED {} |
---|
180 | | - |
---|
181 | | -#define AVX_SELECT(FASTEST) (FASTEST) |
---|
182 | | - |
---|
183 | | -#endif |
---|
184 | 171 | #endif |
---|