Thread (8 messages) 8 messages, 4 authors, 2002-07-25

Re: [PATCH] updated low-latency zap_page_range

From: george anzinger <hidden>
Date: 2002-07-25 01:36:37
Also in: lkml

Linus Torvalds wrote:
On 24 Jul 2002, Robert Love wrote:
quoted
      if (preempt_count() == 1 && need_resched())

Then we get "if (0 && ..)" which should hopefully be evaluated away.
I think preempt_count() is not unconditionally 0 for non-preemptible
kernels, so I don't think this is a compile-time constant.

That may be a bug in preempt_count(), of course.
Didn't we just put bh_count and irq_count in the same
word???
-- 
George Anzinger   george@mvista.com
High-res-timers: 
http://sourceforge.net/projects/high-res-timers/
Real time sched:  http://sourceforge.net/projects/rtsched/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help