From 98ae8e2b7b152ad47539b4d6c1d756d0a2897166 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 25 Sep 2002 07:04:43 -0700 Subject: Remove busy-wait for short RT nanosleeps. It's a random special case and does the wrong thing for higher HZ values anyway. --- kernel/timer.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'kernel/timer.c') diff --git a/kernel/timer.c b/kernel/timer.c index 3b4be840f931..55c14c11c901 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -888,20 +888,6 @@ asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp) if (t.tv_nsec >= 1000000000L || t.tv_nsec < 0 || t.tv_sec < 0) return -EINVAL; - - if (t.tv_sec == 0 && t.tv_nsec <= 2000000L && - current->policy != SCHED_NORMAL) - { - /* - * Short delay requests up to 2 ms will be handled with - * high precision by a busy wait for all real-time processes. - * - * Its important on SMP not to do this holding locks. - */ - udelay((t.tv_nsec + 999) / 1000); - return 0; - } - expire = timespec_to_jiffies(&t) + (t.tv_sec || t.tv_nsec); current->state = TASK_INTERRUPTIBLE; -- cgit v1.2.3