Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 21 Jul 2002 20:57:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 21 Jul 2002 20:57:13 -0400 Received: from gateway-1237.mvista.com ([12.44.186.158]:15609 "EHLO hermes.mvista.com") by vger.kernel.org with ESMTP id ; Sun, 21 Jul 2002 20:57:12 -0400 Subject: Re: [patch] "big IRQ lock" removal, 2.5.27-A9 From: Robert Love To: Ingo Molnar Cc: Linus Torvalds , Christoph Hellwig , linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 21 Jul 2002 18:00:15 -0700 Message-Id: <1027299616.932.5.camel@sinai> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1238 Lines: 30 On Sun, 2002-07-21 at 17:31, Ingo Molnar wrote: > i've done a minor comment update in softirq.c, plus i've written a > cli-sti-removal.txt guide to help driver writers do the transition: Nice document. One more doc correction while we are at it... Robert Love diff -urN linux-2.5.27/Documentation/preempt-locking.txt linux/Documentation/preempt-locking.txt --- linux-2.5.27/Documentation/preempt-locking.txt Sat Jul 20 12:11:06 2002 +++ linux/Documentation/preempt-locking.txt Sun Jul 21 17:59:13 2002 @@ -70,7 +70,8 @@ preempt_enable() decrement the preempt counter preempt_disable() increment the preempt counter preempt_enable_no_resched() decrement, but do not immediately preempt -preempt_get_count() return the preempt counter +preempt_check_resched() if needed, reschedule +preempt_count() return the preempt counter The functions are nestable. In other words, you can call preempt_disable n-times in a code path, and preemption will not be reenabled until the n-th - 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/