| Date | Mon, 22 May 2023 16:18:41 +0200 | From | Heiko Carstens <> | Subject | Re: [PATCH v2 06/13] s390/time: Provide sched_clock_noinstr() |
| |
On Fri, May 19, 2023 at 12:21:04PM +0200, Peter Zijlstra wrote: > With the intent to provide local_clock_noinstr(), a variant of > local_clock() that's safe to be called from noinstr code (with the > assumption that any such code will already be non-preemptible), > prepare for things by providing a noinstr sched_clock_noinstr() > function. > > Specifically, preempt_enable_*() calls out to schedule(), which upsets > noinstr validation efforts. > > Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> > --- > arch/s390/include/asm/timex.h | 13 +++++++++---- > arch/s390/kernel/time.c | 11 ++++++++++- > 2 files changed, 19 insertions(+), 5 deletions(-)
Acked-by: Heiko Carstens <hca@linux.ibm.com>
|