From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753528AbcBZJme (ORCPT ); Fri, 26 Feb 2016 04:42:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:38744 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772AbcBZJd4 (ORCPT ); Fri, 26 Feb 2016 04:33:56 -0500 Date: Fri, 26 Feb 2016 10:33:49 +0100 From: Borislav Petkov To: Alexander Kuleshov Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, Joerg Roedel , Dave Young , Andrew Morton , Baoquan He , Mark Salter , linux-kernel@vger.kernel.org Subject: Re: [PATCH v8] x86/setup: get ramdisk parameters only once Message-ID: <20160226093349.GB12729@pd.tnic> References: <1456477476-16415-1-git-send-email-kuleshovmail@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1456477476-16415-1-git-send-email-kuleshovmail@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2016 at 03:04:36PM +0600, Alexander Kuleshov wrote: > The check and definitions related to ramdisk are similar in the > early_reserve_initrd() and reserve_initrd() functions. > > This patch introduces struct ramdisk which contains information > about initrd. This structure will be filled in the setup_arch() > and passed to the reserve_initrd() and relocate_initrd() functions. > > This allows us to not get/check ramdisk parameters from the bootparams > every time in the early_reserve_initrd(), reserve_initrd() and > relocate_initrd() function. > > Signed-off-by: Alexander Kuleshov ... > arch/x86/kernel/setup.c | 107 ++++++++++++++++++++++++++---------------------- > 1 file changed, 59 insertions(+), 48 deletions(-) Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --