patch-2.0.14 linux/kernel/sched.c

Next file: linux/net/core/sock.c
Previous file: linux/include/linux/personality.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.13/linux/kernel/sched.c linux/kernel/sched.c
@@ -997,23 +997,11 @@
 	run_timer_list();
 }
 
-/*
- * Run the bottom half stuff only about 100 times a second,
- * we'd just use up unnecessary CPU time for timer handling
- * otherwise
- */
-#if HZ > 100
-#define should_run_timers(x) ((x) >= HZ/100)
-#else
-#define should_run_timers(x) (1)
-#endif
-
 void do_timer(struct pt_regs * regs)
 {
 	(*(unsigned long *)&jiffies)++;
 	lost_ticks++;
-	if (should_run_timers(lost_ticks))
-		mark_bh(TIMER_BH);
+	mark_bh(TIMER_BH);
 	if (!user_mode(regs)) {
 		lost_ticks_system++;
 		if (prof_buffer && current->pid) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov