From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH 6/7] sched, x86: Provide a per-cpu preempt_count implementation Date: Tue, 10 Sep 2013 15:27:24 +0200 Message-ID: <20130910132724.GF31370@twins.programming.kicks-ass.net> References: <20130910130811.507933095@infradead.org> <20130910132011.396291123@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from merlin.infradead.org ([205.233.59.134]:47090 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974Ab3IJN1e (ORCPT ); Tue, 10 Sep 2013 09:27:34 -0400 Content-Disposition: inline In-Reply-To: <20130910132011.396291123@infradead.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Linus Torvalds , Ingo Molnar Cc: Andi Kleen , Peter Anvin , Mike Galbraith , Thomas Gleixner , Arjan van de Ven , Frederic Weisbecker , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org On Tue, Sep 10, 2013 at 03:08:17PM +0200, Peter Zijlstra wrote: > @@ -1095,6 +1095,9 @@ DEFINE_PER_CPU(char *, irq_stack_ptr) = > > DEFINE_PER_CPU(unsigned int, irq_count) __visible = -1; > > +DEFINE_PER_CPU(int, __preempt_count) = INIT_PREEMPT_COUNT; > +EXPORT_PER_CPU_SYMBOL(__preempt_count); > + Note that afaict this patch takes away the reason irq_count exists.