Re: [PATCH] updated low-latency zap_page_range

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed Jul 24 2002 - 20:21:07 EST


On 24 Jul 2002, Robert Love wrote:
>
> 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.

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:18 EST