Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758828Ab2FUIbE (ORCPT ); Thu, 21 Jun 2012 04:31:04 -0400 Received: from casper.infradead.org ([85.118.1.10]:45633 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758736Ab2FUIa7 convert rfc822-to-8bit (ORCPT ); Thu, 21 Jun 2012 04:30:59 -0400 Message-ID: <1340267442.21745.156.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:30:42 +0200 In-Reply-To: References: <1340113391-1896-1-git-send-email-fweisbec@gmail.com> <1340231192.21745.154.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: 823 Lines: 18 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? -- 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/