From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbdAYQfy (ORCPT ); Wed, 25 Jan 2017 11:35:54 -0500 Received: from relay1.sgi.com ([192.48.180.66]:59864 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542AbdAYQfS (ORCPT ); Wed, 25 Jan 2017 11:35:18 -0500 Message-Id: <20170125163518.256403963@asylum.americas.sgi.com> References: <20170125163517.162577002@asylum.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Wed, 25 Jan 2017 10:35:23 -0600 From: "'Mike Travis" , '@sgi.com To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Russ Anderson Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Dimitri Sivanich Subject: [PATCH 6/7] x86/platform/UV: Insure uv_system_init is called when necessary Content-Disposition: inline; filename=uv4_call_uv_system_init Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the check to whether this is a UV system that needs initialization from is_uv_system() to the internal uv_system_init() function. This is because on a UV system without a HUB the is_uv_system() returns false. But we still need some specific UV system initialization. See the uv_system_init() for change to a quick check if UV is applicable. This change should not increase overhead since is_uv_system() also called into this same area. Signed-off-by: Mike Travis Acked-by: Dimitri Sivanich Reviewed-by: Russ Anderson --- arch/x86/kernel/smpboot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- linux.orig/arch/x86/kernel/smpboot.c +++ linux/arch/x86/kernel/smpboot.c @@ -1341,8 +1341,7 @@ void __init native_smp_prepare_cpus(unsi pr_info("CPU0: "); print_cpu_info(&cpu_data(0)); - if (is_uv_system()) - uv_system_init(); + uv_system_init(); set_mtrr_aps_delayed_init(); --