Re: [PATCH 07/19] riscv: Optimize riscv_cpu_isa_extension_(un)likely()

2024-04-12 Thread Conor Dooley
On Fri, Apr 12, 2024 at 10:34:28AM -0700, Charlie Jenkins wrote: > On Fri, Apr 12, 2024 at 11:40:38AM +0100, Conor Dooley wrote: > > On Thu, Apr 11, 2024 at 09:11:13PM -0700, Charlie Jenkins wrote: > > > When alternatives are disabled, riscv_cpu_isa_extension_(un)likely() > > > checks if the curren

Re: [PATCH 07/19] riscv: Optimize riscv_cpu_isa_extension_(un)likely()

2024-04-12 Thread Charlie Jenkins
On Fri, Apr 12, 2024 at 11:40:38AM +0100, Conor Dooley wrote: > On Thu, Apr 11, 2024 at 09:11:13PM -0700, Charlie Jenkins wrote: > > When alternatives are disabled, riscv_cpu_isa_extension_(un)likely() > > checks if the current cpu supports the selected extension if not all > > cpus support the ext

Re: [PATCH 07/19] riscv: Optimize riscv_cpu_isa_extension_(un)likely()

2024-04-12 Thread Conor Dooley
On Thu, Apr 11, 2024 at 09:11:13PM -0700, Charlie Jenkins wrote: > When alternatives are disabled, riscv_cpu_isa_extension_(un)likely() > checks if the current cpu supports the selected extension if not all > cpus support the extension. It is sufficient to only check if the > current cpu supports t

[PATCH 07/19] riscv: Optimize riscv_cpu_isa_extension_(un)likely()

2024-04-11 Thread Charlie Jenkins
When alternatives are disabled, riscv_cpu_isa_extension_(un)likely() checks if the current cpu supports the selected extension if not all cpus support the extension. It is sufficient to only check if the current cpu supports the extension. The alternatives code to handle if all cpus support an ext