[PATCH v2] um: enable the use of optimized xor routines in UML

Anton Ivanov anton.ivanov at cambridgegreys.com
Thu Nov 12 06:05:09 EST 2020


On 12/11/2020 11:00, Johannes Berg wrote:
> On Thu, 2020-11-12 at 10:33 +0000, anton.ivanov at cambridgegreys.com
> wrote:
>> +++ b/arch/um/include/asm/xor.h
>> @@ -1,7 +1,22 @@
>>   /* SPDX-License-Identifier: GPL-2.0 */
>> -#include <asm-generic/xor.h>
>> +#ifndef _ASM_UM_XOR_H
>> +#define _ASM_UM_XOR_H
>> +
>> +#ifdef CONFIG_64BIT
>> +#undef CONFIG_X86_32
>> +#else
>> +#define CONFIG_X86_32 "Y"
>> +#endif
> I thought you said it was some leftover? :)
>
>> +	for (index = 0; index < MAX_UM_CPU_FEATURES; index++) {
>> +		if (boot_cpu_data.host_features & (1 << index))
>> +			seq_printf(m, " %s", host_cpu_feature_names[index]);
> Confused. Now I don't see MAX_UM_CPU_FEATURES or
> host_cpu_feature_names[] anywhere now?


Ooops... forgot to include a file. Broken patch.


>
> johannes
>
>
-- 
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/




More information about the linux-um mailing list