Re: [PATCH 2/3] s390/cpufeature: allow for facility bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 Jul 2022 12:52:19 +0200
Steffen Eiden <seiden@xxxxxxxxxxxxx> wrote:

> From: Heiko Carstens <hca@xxxxxxxxxxxxx>
> 
> Allow for facility bits to be used in cpu features.
> 
> Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>

Reviewed-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>

> ---
>  arch/s390/kernel/cpufeature.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/s390/kernel/cpufeature.c b/arch/s390/kernel/cpufeature.c
> index ea4bbfd855db..e70b29804db4 100644
> --- a/arch/s390/kernel/cpufeature.c
> +++ b/arch/s390/kernel/cpufeature.c
> @@ -10,6 +10,7 @@
>  
>  enum {
>  	TYPE_HWCAP,
> +	TYPE_FACILITY,
>  };
>  
>  struct s390_cpu_feature {
> @@ -54,6 +55,8 @@ int cpu_have_feature(unsigned int num)
>  	switch (feature->type) {
>  	case TYPE_HWCAP:
>  		return !!(elf_hwcap & (1UL << feature->num));
> +	case TYPE_FACILITY:
> +		return test_facility(feature->num);
>  	default:
>  		WARN_ON_ONCE(1);
>  		return 0;





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux