From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966436AbdGUDpT (ORCPT ); Thu, 20 Jul 2017 23:45:19 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:40474 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966051AbdGUDpS (ORCPT ); Thu, 20 Jul 2017 23:45:18 -0400 Date: Fri, 21 Jul 2017 04:45:10 +0100 (WEST) Message-Id: <20170721.044510.1044996118554999021.davem@davemloft.net> To: vijay.ac.kumar@oracle.com Cc: sparclinux@vger.kernel.org, rob.gardner@oracle.com, anthony.yznaga@oracle.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] sparc64: Use low latency path to resume idle cpu From: David Miller In-Reply-To: <3bb6d4bb-ebf1-1a1f-9766-b02a187cbe1e@oracle.com> References: <20170721.035526.1236051430538663900.davem@davemloft.net> <3bb6d4bb-ebf1-1a1f-9766-b02a187cbe1e@oracle.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 20 Jul 2017 20:45:18 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vijay Kumar Date: Thu, 20 Jul 2017 22:36:42 -0500 > I can give a try :). But looks to me one thing that will go wrong is > irq accounting done in __irq_enter() and rcu_irq_enter(). Actually, the bigger problem is that scheduler_ipi() can raise a software interrupt, and nothing will invoke it. It's turning quite ugly to avoid the IRQ overhead, I must admit. So ignore this for now. In the longer term a probably cleaner way to do this is to have a special direct version of scheduler_ipi() that invokes all the necessary work, even the rebalance softirq, directly rather than indirectly.