Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422946Ab2KNQkZ (ORCPT ); Wed, 14 Nov 2012 11:40:25 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:14339 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964820Ab2KNQkY (ORCPT ); Wed, 14 Nov 2012 11:40:24 -0500 X-Authority-Analysis: v=2.0 cv=YP4dOG6x c=1 sm=0 a=rXTBtCOcEpjy1lPqhTCpEQ==:17 a=mNMOxpOpBa8A:10 a=64KZV6gX4dAA:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=meVymXHHAAAA:8 a=5Rm-iVo867QA:10 a=hBlrbkE5Njvd5_4yfg0A:9 a=PUjeQqilurYA:10 a=rXTBtCOcEpjy1lPqhTCpEQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.115.198 Message-ID: <1352911221.18025.66.camel@gandalf.local.home> Subject: Re: [PATCH 1/4] vtime: Remove the underscore prefix invasion From: Steven Rostedt To: Frederic Weisbecker Cc: LKML , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Gortmaker , Tony Luck , Fenghua Yu , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens Date: Wed, 14 Nov 2012 11:40:21 -0500 In-Reply-To: <1352910413-10759-2-git-send-email-fweisbec@gmail.com> References: <1352910413-10759-1-git-send-email-fweisbec@gmail.com> <1352910413-10759-2-git-send-email-fweisbec@gmail.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.4.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 36 On Wed, 2012-11-14 at 17:26 +0100, Frederic Weisbecker wrote: > Prepending irq-unsafe vtime APIs with underscores was actually > a bad idea as the result is a big mess in the API namespace that > is even waiting to be further extended. Also these helpers > are always called from irq safe callers except kvm. Just > provide a vtime_account_system_irqsafe() for this specific > case so that we can remove the underscore prefix on other > vtime functions. > > -void __vtime_account_system(struct task_struct *tsk) > +void vtime_account_system(struct task_struct *tsk) > { > cputime_t delta = vtime_delta(tsk); Should we add a WARN_ON(!irqs_disabled()) check here? -- Steve > > account_system_time(tsk, 0, delta, delta); > } > > -void __vtime_account_idle(struct task_struct *tsk) > +void vtime_account_idle(struct task_struct *tsk) > { > account_idle_time(vtime_delta(tsk)); > } -- 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/