Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754330AbaFCO46 (ORCPT ); Tue, 3 Jun 2014 10:56:58 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:51786 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752637AbaFCO45 (ORCPT ); Tue, 3 Jun 2014 10:56:57 -0400 Date: Tue, 3 Jun 2014 16:56:53 +0200 From: Frederic Weisbecker To: Peter Zijlstra Cc: Ingo Molnar , LKML , Andrew Morton , Kevin Hilman , "Paul E. McKenney" , Thomas Gleixner , Viresh Kumar Subject: Re: [PATCH 1/5] irq_work: Split raised and lazy lists Message-ID: <20140603145651.GB23860@localhost.localdomain> References: <1401806420-31018-1-git-send-email-fweisbec@gmail.com> <1401806420-31018-2-git-send-email-fweisbec@gmail.com> <20140603145442.GS30445@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140603145442.GS30445@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 03, 2014 at 04:54:42PM +0200, Peter Zijlstra wrote: > On Tue, Jun 03, 2014 at 04:40:16PM +0200, Frederic Weisbecker wrote: > > @@ -90,10 +89,10 @@ EXPORT_SYMBOL_GPL(irq_work_queue); > > > > bool irq_work_needs_cpu(void) > > { > > - struct llist_head *this_list; > > + struct llist_head *list; > > > > - this_list = &__get_cpu_var(irq_work_list); > > - if (llist_empty(this_list)) > > + list = &__get_cpu_var(lazy_list); > > + if (llist_empty(list)) > > return false; > > > > /* All work should have been flushed before going offline */ > > Does this mean needs_cpu() only checks the lazy list? What about archs > without the arch_irq_work_raise() function? They run the other list from > the tick too. Right, I'll fix that too. -- 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/