From patchwork Fri May 9 17:06:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 4144581 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F1E9C9F387 for ; Fri, 9 May 2014 17:08:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2BF3E202EC for ; Fri, 9 May 2014 17:08:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59425202EA for ; Fri, 9 May 2014 17:08:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WioGB-0005Cr-2T; Fri, 09 May 2014 17:06:59 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WioG7-00053h-Lh for linux-arm-kernel@bombadil.infradead.org; Fri, 09 May 2014 17:06:55 +0000 Received: from dhcp-077-248-225-117.chello.nl ([77.248.225.117] helo=twins) by casper.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1WioG3-0007QX-St; Fri, 09 May 2014 17:06:51 +0000 Received: by twins (Postfix, from userid 1000) id 860D48180285; Fri, 9 May 2014 19:06:49 +0200 (CEST) Date: Fri, 9 May 2014 19:06:49 +0200 From: Peter Zijlstra To: Catalin Marinas Subject: Re: [RFC][PATCH 6/8] sched,idle: Avoid spurious wakeup IPIs Message-ID: <20140509170649.GG13658@twins.programming.kicks-ass.net> References: <20140411134243.160989490@infradead.org> <20140411135218.478299389@infradead.org> <20140509141520.GV2844@laptop.programming.kicks-ass.net> <20140509144034.GF7950@arm.com> <20140509145002.GW2844@laptop.programming.kicks-ass.net> <20140509145745.GI7950@arm.com> <20140509170234.GZ30445@twins.programming.kicks-ass.net> MIME-Version: 1.0 In-Reply-To: <20140509170234.GZ30445@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2012-12-30) Cc: "nicolas.pitre@linaro.org" , James Hogan , "daniel.lezcano@linaro.org" , Will Deacon , LKML , "luto@amacapital.net" , "umgwanakikbuti@gmail.com" , Thomas Gleixner , "mingo@kernel.org" , ARM Kernel List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri, May 09, 2014 at 07:02:34PM +0200, Peter Zijlstra wrote: > OK, so I'll queue a patch removing TIF_POLLING_NRFLAG for arm64. Acked-by: Catalin Marinas --- Subject: arm64: Remove TIF_POLLING_NRFLAG From: Peter Zijlstra Date: Fri May 9 19:04:00 CEST 2014 The only idle method for arm64 is WFI and it therefore unconditionally requires the reschedule interrupt when idle. Suggested-by: Catalin Marinas Signed-off-by: Peter Zijlstra --- arch/arm64/include/asm/thread_info.h | 2 -- 1 file changed, 2 deletions(-) --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@ -95,13 +95,11 @@ static inline struct thread_info *curren * TIF_NEED_RESCHED - rescheduling necessary * TIF_NOTIFY_RESUME - callback before returning to user * TIF_USEDFPU - FPU was used by this task this quantum (SMP) - * TIF_POLLING_NRFLAG - true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_SIGPENDING 0 #define TIF_NEED_RESCHED 1 #define TIF_NOTIFY_RESUME 2 /* callback before returning to user */ #define TIF_SYSCALL_TRACE 8 -#define TIF_POLLING_NRFLAG 16 #define TIF_MEMDIE 18 /* is terminating due to OOM killer */ #define TIF_FREEZE 19 #define TIF_RESTORE_SIGMASK 20