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

Johannes Berg johannes at sipsolutions.net
Thu Nov 12 06:00:57 EST 2020


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?

johannes




More information about the linux-um mailing list