Re: [PATCH] powerpc: Add preempt lazy support

2024-11-15 Thread Ankur Arora
Shrikanth Hegde writes: > On 11/9/24 22:24, Shrikanth Hegde wrote: >> >> On 11/9/24 00:36, Ankur Arora wrote: >>> >>> Shrikanth Hegde writes: >>> Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. >

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-14 Thread Shrikanth Hegde
On 11/9/24 22:24, Shrikanth Hegde wrote: On 11/9/24 00:36, Ankur Arora wrote: Shrikanth Hegde writes: Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. Since Powerpc doesn't use the generic entry/exi

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-14 Thread Shrikanth Hegde
On 11/14/24 07:31, Michael Ellerman wrote: Shrikanth Hegde writes: Thank you Sebastian for taking a look and rwb tag. On 2024-11-08 15:48:53 [+0530], Shrikanth Hegde wrote: Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler ca

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-13 Thread Michael Ellerman
Shrikanth Hegde writes: > Thank you Sebastian for taking a look and rwb tag. > >> On 2024-11-08 15:48:53 [+0530], Shrikanth Hegde wrote: >>> Define preempt lazy bit for Powerpc. Use bit 9 which is free and within >>> 16 bit range of NEED_RESCHED, so compiler can issue single andi. >>> >>> Since Po

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-09 Thread Shrikanth Hegde
On 11/9/24 00:36, Ankur Arora wrote: Shrikanth Hegde writes: Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. Since Powerpc doesn't use the generic entry/exit, add lazy check at exit to user. CONFIG_PR

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-09 Thread Shrikanth Hegde
Thank you Sebastian for taking a look and rwb tag. On 2024-11-08 15:48:53 [+0530], Shrikanth Hegde wrote: Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. Since Powerpc doesn't use the generic entry/exit

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-08 Thread Ankur Arora
Shrikanth Hegde writes: > Define preempt lazy bit for Powerpc. Use bit 9 which is free and within > 16 bit range of NEED_RESCHED, so compiler can issue single andi. > > Since Powerpc doesn't use the generic entry/exit, add lazy check at exit > to user. CONFIG_PREEMPTION is defined for lazy/full

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-08 Thread Sebastian Andrzej Siewior
On 2024-11-08 15:48:53 [+0530], Shrikanth Hegde wrote: > Define preempt lazy bit for Powerpc. Use bit 9 which is free and within > 16 bit range of NEED_RESCHED, so compiler can issue single andi. > > Since Powerpc doesn't use the generic entry/exit, add lazy check at exit > to user. CONFIG_PREEMP

[PATCH] powerpc: Add preempt lazy support

2024-11-08 Thread Shrikanth Hegde
Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. Since Powerpc doesn't use the generic entry/exit, add lazy check at exit to user. CONFIG_PREEMPTION is defined for lazy/full/rt so use it for return to kernel.