Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759010Ab2FUIxj (ORCPT ); Thu, 21 Jun 2012 04:53:39 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40839 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758969Ab2FUIxg convert rfc822-to-8bit (ORCPT ); Thu, 21 Jun 2012 04:53:36 -0400 Message-ID: <1340268801.21745.162.camel@twins> Subject: Re: [PATCH 0/4] cputime: Virtual cputime accounting small cleanups and consolidation From: Peter Zijlstra To: Frederic Weisbecker Cc: Ingo Molnar , Thomas Gleixner , LKML , Tony Luck , Fenghua Yu , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Venkatesh Pallipadi Date: Thu, 21 Jun 2012 10:53:21 +0200 In-Reply-To: <1340267442.21745.156.camel@twins> References: <1340113391-1896-1-git-send-email-fweisbec@gmail.com> <1340231192.21745.154.camel@twins> <1340267442.21745.156.camel@twins> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 24 On Thu, 2012-06-21 at 10:30 +0200, Peter Zijlstra wrote: > On Thu, 2012-06-21 at 02:46 +0200, Frederic Weisbecker wrote: > > > So I understand why s390,ia64 want the sched hook, but I don't see why > > > ppc would need it, their account_process_tick() can fold whatever they > > > need on the tick. > > > > I think in any case you need to flush the time on a descheduling task otherwise > > its pending time will be accounted later to the next task when it > > receives an irq. > > > > So I fear we still need that sched switch hook even with per cpu data. This > > may be a simple account_system_vtime() call. > > Did I miss a per-task something in there? Gah yeah.. I was staring too hard at the arch code and missed the task accounting in the core code. OK, so that switch hook stays :-) -- 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/