From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753992AbaDOKwd (ORCPT ); Tue, 15 Apr 2014 06:52:33 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54431 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752134AbaDOKwc (ORCPT ); Tue, 15 Apr 2014 06:52:32 -0400 Date: Tue, 15 Apr 2014 12:52:26 +0200 From: Peter Zijlstra To: Frederic Weisbecker Cc: Viresh Kumar , Thomas Gleixner , Linux Kernel Mailing List , Lists linaro-kernel Subject: Re: [Query]: tick-sched: why don't we stop tick when we are running idle task? Message-ID: <20140415105226.GP11096@twins.programming.kicks-ass.net> References: <20140411145333.GC3438@localhost.localdomain> <20140411151825.GX11096@twins.programming.kicks-ass.net> <20140414110245.GG11096@twins.programming.kicks-ass.net> <20140414114744.GI11096@twins.programming.kicks-ass.net> <20140414120600.GJ11096@twins.programming.kicks-ass.net> <20140415093002.GL1877@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140415093002.GL1877@localhost.localdomain> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 15, 2014 at 11:30:04AM +0200, Frederic Weisbecker wrote: > There is probably a few things that assume local calls but last time > I checked I had the impression that it was fairly possible to call sched_class::task_tick() > remotely. rq is locked, no reference to "current", use rq accessors... > > OTOH scheduler_tick() itself definetly requires local calls. possible isn't the problem, its completely insane to do that.