From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/kernel/time/hrtimer.c | 30 ------------------------------ 1 files changed, 0 insertions(+), 30 deletions(-) diff --git a/kernel/kernel/time/hrtimer.c b/kernel/kernel/time/hrtimer.c index 3db616a..544ce87 100644 --- a/kernel/kernel/time/hrtimer.c +++ b/kernel/kernel/time/hrtimer.c @@ -2052,36 +2052,6 @@ } #endif -#ifdef CONFIG_PREEMPT_RT -/* - * Sleep for 1 ms in hope whoever holds what we want will let it go. - */ -void cpu_chill(void) -{ - unsigned int freeze_flag = current->flags & PF_NOFREEZE; - struct task_struct *self = current; - ktime_t chill_time; - - raw_spin_lock_irq(&self->pi_lock); - self->saved_state = self->state; - __set_current_state_no_track(TASK_UNINTERRUPTIBLE); - raw_spin_unlock_irq(&self->pi_lock); - - chill_time = ktime_set(0, NSEC_PER_MSEC); - - current->flags |= PF_NOFREEZE; - schedule_hrtimeout(&chill_time, HRTIMER_MODE_REL_HARD); - if (!freeze_flag) - current->flags &= ~PF_NOFREEZE; - - raw_spin_lock_irq(&self->pi_lock); - __set_current_state_no_track(self->saved_state); - self->saved_state = TASK_RUNNING; - raw_spin_unlock_irq(&self->pi_lock); -} -EXPORT_SYMBOL(cpu_chill); -#endif - /* * Functions related to boot-time initialization: */ -- Gitblit v1.6.2