Re: [PATCH 2/4] KVM: s390: Remove cond_resched() calls

Claudio Imbrenda <[email protected]>
Newsgroups org.kernel.vger.linux-s390,org.kernel.vger.linux-kernel
Organization IBM
Message-ID <20260729184548.38b7c791@p-imbrenda>
On Mon, 27 Jul 2026 18:24:28 +0200
Heiko Carstens <[email protected]> wrote:

> Since [1] cond_resched() is a no-op on s390. Remove all calls.
> 
> [1] commit 7dadeaa6e851 ("sched: Further restrict the preemption modes")
> 
> Signed-off-by: Heiko Carstens <[email protected]>
> ---
>  arch/s390/include/asm/uv.h  | 1 -
>  arch/s390/kvm/gaccess.c     | 8 ++------
>  arch/s390/kvm/gmap.c        | 4 ----
>  arch/s390/kvm/kvm-s390.c    | 1 -
>  arch/s390/kvm/pv.c          | 1 -
>  arch/s390/kvm/vsie.c        | 1 -
>  arch/s390/mm/gmap_helpers.c | 1 -
>  7 files changed, 2 insertions(+), 15 deletions(-)
> 
> diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
> index d919e69662f5..795da130342a 100644
> --- a/arch/s390/include/asm/uv.h
> +++ b/arch/s390/include/asm/uv.h
> @@ -461,7 +461,6 @@ static inline int uv_call_sched(unsigned long r1, unsigned long r2)
>  
>  	do {
>  		cc = __uv_call(r1, r2);
> -		cond_resched();
>  	} while (cc > 1);
>  	return cc;
>  }

so now uv_call_sched() is the same as uv_call()?
just drop uv_call_sched() then


[...]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.