public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove spurious BUG from posix-cpu-timers
@ 2005-03-19  4:45 Matthew Wilcox
  2005-03-19  4:53 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox @ 2005-03-19  4:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-arch, Roland McGrath


PA-RISC does not necessarily have interrupts disabled while timers are
running.  This doesn't appear to be a requirement, but posix-cpu-timers
seems to think it is.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>

diff -urpNX dontdiff linus-2.6/kernel/posix-cpu-timers.c parisc-2.6/kernel/posix-cpu-timers.c
--- linus-2.6/kernel/posix-cpu-timers.c	2005-03-18 05:55:27.000000000 -0700
+++ parisc-2.6/kernel/posix-cpu-timers.c	2005-03-18 13:52:53.341505966 -0700
@@ -1242,8 +1242,6 @@ void run_posix_cpu_timers(struct task_st
 	LIST_HEAD(firing);
 	struct k_itimer *timer, *next;
 
-	BUG_ON(!irqs_disabled());
-
 #define UNEXPIRED(clock) \
 		(tsk->it_##clock##_expires == 0 || \
 		 cputime_lt(clock##_ticks(tsk), tsk->it_##clock##_expires))

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-20  7:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-19  4:45 [PATCH] Remove spurious BUG from posix-cpu-timers Matthew Wilcox
2005-03-19  4:53 ` Andrew Morton
2005-03-19  4:59   ` Matthew Wilcox
2005-03-20  7:38     ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox