Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751970AbZLIIdc (ORCPT ); Wed, 9 Dec 2009 03:33:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751849AbZLIIdb (ORCPT ); Wed, 9 Dec 2009 03:33:31 -0500 Received: from mail-ew0-f209.google.com ([209.85.219.209]:39422 "EHLO mail-ew0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbZLIIda (ORCPT ); Wed, 9 Dec 2009 03:33:30 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=IM+kGmo8hLF5MBflj619B/qsOn2MUW2vow1eMeoRz5qGlcy96JcL+kbJ+dCyppkKsP IvTylz7rrsyxTepn7YdaHMCubkHCRX5a3BFv/8mGrgGDMBLf1xxxIgZ6rJ6uuJp07c5t BGfLWIpfP2IyxV9r9Mfe6QHxmBrvlS6z0iCLQ= Date: Wed, 9 Dec 2009 09:33:34 +0100 From: Frederic Weisbecker To: Xiao Guangrong Cc: Ingo Molnar , Peter Zijlstra , Paul Mackerras , LKML Subject: Re: [PATCH 1/3] perf_event: cleanup for __perf_event_init_context() Message-ID: <20091209083332.GA5152@nowhere> References: <4B1F194D.7080306@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B1F194D.7080306@cn.fujitsu.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 693 Lines: 21 On Wed, Dec 09, 2009 at 11:28:13AM +0800, Xiao Guangrong wrote: > This is a cleanup patch and does: > - define 'perf_cpu_context' variable with 'static' > - using kzalloc() instead of kmalloc() and memset() > > Signed-off-by: Xiao Guangrong > --- And perf_event_init_cpu() doesn't need it as it's supposed to be statically zeroed already. Looks good to me. Reviewed-by: Frederic Weisbecker -- 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/