Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933064AbbGGT2E (ORCPT ); Tue, 7 Jul 2015 15:28:04 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:19452 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932758AbbGGT16 (ORCPT ); Tue, 7 Jul 2015 15:27:58 -0400 Date: Tue, 7 Jul 2015 15:27:46 -0400 From: Konrad Rzeszutek Wilk To: Boris Ostrovsky Cc: david.vrabel@citrix.com, roger.pau@citrix.com, elena.ufimtseva@oracle.com, stefano.stabellini@eu.citrix.com, tim@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] xen/x86: Remove unnecessary memset() call Message-ID: <20150707192746.GB6372@l.oracle.com> References: <1436240065-10813-1-git-send-email-boris.ostrovsky@oracle.com> <1436240065-10813-3-git-send-email-boris.ostrovsky@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436240065-10813-3-git-send-email-boris.ostrovsky@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1118 Lines: 31 On Mon, Jul 06, 2015 at 11:34:21PM -0400, Boris Ostrovsky wrote: > Since ctxt is kzalloc'd there is no need to call a memset for > ctxt->fpu_ctxt. > > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk > --- > arch/x86/xen/smp.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c > index ca7ee1f..7cf0765 100644 > --- a/arch/x86/xen/smp.c > +++ b/arch/x86/xen/smp.c > @@ -377,7 +377,6 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle) > ctxt->user_regs.fs = __KERNEL_PERCPU; > ctxt->user_regs.gs = __KERNEL_STACK_CANARY; > #endif > - memset(&ctxt->fpu_ctxt, 0, sizeof(ctxt->fpu_ctxt)); > > if (!xen_feature(XENFEAT_auto_translated_physmap)) { > ctxt->user_regs.eip = (unsigned long)cpu_bringup_and_idle; > -- > 1.8.1.4 > -- 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/