Message ID | 20240222184005.87229530@davehans-spike.ostc.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-77184-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp283976dyb; Thu, 22 Feb 2024 15:40:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUPnvkqa5dX6kJ7J14czEN/JoBfnYVlFe0gSw711QU6CJYi+DThRyQw5UdNJThNXp/8thHYyuTkuL5yRVFewibPd4Ck9w== X-Google-Smtp-Source: AGHT+IGnrJn+qU8+Yy+vgxSilW2eEHAW+eh09x7pJlPLFC+JbDdRoVezAA8vOYfvUGgFHNmn4m/0 X-Received: by 2002:a17:90a:d718:b0:299:3c18:9c71 with SMTP id y24-20020a17090ad71800b002993c189c71mr263802pju.37.1708645217153; Thu, 22 Feb 2024 15:40:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708645217; cv=pass; d=google.com; s=arc-20160816; b=mk0Tm5foMfN++wTnlBn7VF8l57JCjRf2mfSz75FLvhmp3c1p7LG4DfVs/GAS6bY1QQ sIDTHJg9gQGl4a3izHzY6+XdVQ+LQkEZQu17giu9LOkh4jVq0khFi5bkjudWTUhuxwGe 9YzIC4L/uswFEEPslRdP/j6CtFiWh0cS1WXPnpQ18yCPuH7ZpiZJCvREIHsMpzAnts5Z wxgR/IpLO3EbeLowyClAQW8QI13fjnD1O5GgTe2NNMzUaD1JcKKhoVH9jh2bplwrPxlf 3mB0YHSLfmwmbZAXlC4ruWkPAvQgaQEBSFuGkcK2FDjHmHVvKyDWVoXXE71Dqto52S7L mfJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id :in-reply-to:references:date:from:cc:to:subject:dkim-signature; bh=LzgwEmA/MvRRFEKxFpbrCCTAutaYImNnaql+dAei5tY=; fh=HUgOPOMLUPcroonsK10/uEWpbBCP57e0QFUoVmMwghQ=; b=QOpY89EhaaGeELcBCCSczoG7v4LujKgAyWuQHcMJVLgEKsr2Tm/JOz2XPL7WyZEy7O WZzVmNoYwyYgPlYa0LlHzUHOmJoVTwmLXXJGsmp3wqZTV59dLJLBVZe0XxgnZhQocGAo XbOqXE3uBDrrLCt5fPKZJ58+nONSGEoYDE4LoDb/Xzs748YaKG1Q2aZv2Dt2HQFc7SsO cyA6WIJQgYymySeNwztyYEl+FX5vcv9A8lGnWlZC6HirL4+brdvYg+hP0va//Cwxgw6B tC+OADLo9BG78amo0gqHmjQhwxJP/Nid+QWNyjdh/bNjV0TNNSnJ55yr4UcSmJpNRVOd 4bhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y02G1hto; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77184-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77184-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fy11-20020a17090b020b00b0029a76a65eeesi83013pjb.125.2024.02.22.15.40.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 15:40:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77184-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y02G1hto; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77184-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77184-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CD0BD28D289 for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 18:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD586157E97; Thu, 22 Feb 2024 18:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Y02G1hto" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4436A14038D for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 18:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627210; cv=none; b=q+6eX3zO+W9Auvl3CdYO3MBpYn6YurAGrbuK2LQbeiU0i1kkelWP62RaxX/b9nHyZono+artC41vpaCCx8hvHZgWCfj1SPqlax70ejMkVNFA6ACiEBhu8+7qDm9u99dn5FFiZuV7FDz4KGb+10xvOeoNyRfkY+5yu1zmlD2BSC8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627210; c=relaxed/simple; bh=IHq53bWUd8zFRS3i8EHUWcDqCt/OSX6cwnyJtJ5m0oY=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=Hj5AA2Hyju5+lUprAj3f4kWqhcaS8yjD04HPWXvz7l98aWE+k269fZFhozuubNUwoi5rnRBLDZ/q9hWYysRn+xeI3Di0kfhHGou5Ifnd2TjN+JgrIq0TLa+SUosubSySVZJuNy2SI90/9TBJUT5MrUq5EL2SURy/eXxfDqWhB1M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Y02G1hto; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708627208; x=1740163208; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=IHq53bWUd8zFRS3i8EHUWcDqCt/OSX6cwnyJtJ5m0oY=; b=Y02G1htoWg/nmJknhefWTrk61U14CuT4uQx9ZoF04Iw1bVaLof3lPXCC lbEeDY12YBliUCWq77qV7wDHNmkzRbT18tU49r+ua+cuznC7LolgXBUBj DFGaeFP+2dBRdk9jAiNycfZfeoZNQnrFFu6UwIfIzaj3C0qFlU1ra3pPd 8vudXSMIE257s/LkFppLkC3bRuu4VBWYzhQRLPstEEFy88dvgj/lVFM5r oWoCgGN0y8VTBhO8+pKIGCCfFAyLq50LOis4QPxlfV/BfYjwcnMIWBa9M 1kM/3nsmuBtYJ47t/qjYJd7sTW++whmARAJ4W0H44EFl70cZh5ellraQY g==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="13584585" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="13584585" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 10:40:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="10265271" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.164.11]) by orviesa004.jf.intel.com with ESMTP; 22 Feb 2024 10:40:06 -0800 Subject: [RFC][PATCH 30/34] x86/cpu/centaur: Mark BSP init function as __init To: linux-kernel@vger.kernel.org Cc: kirill.shutemov@linux.intel.com,pbonzini@redhat.com,tglx@linutronix.de,x86@kernel.org,bp@alien8.de,Dave Hansen <dave.hansen@linux.intel.com> From: Dave Hansen <dave.hansen@linux.intel.com> Date: Thu, 22 Feb 2024 10:40:05 -0800 References: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> In-Reply-To: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> Message-Id: <20240222184005.87229530@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791644367301288691 X-GMAIL-MSGID: 1791644367301288691 |
Series |
x86: Rework system-wide configuration masquerading as per-cpu data
|
|
Commit Message
Dave Hansen
Feb. 22, 2024, 6:40 p.m. UTC
From: Dave Hansen <dave.hansen@linux.intel.com> The boot CPU is obviously not initialized during normal system runtime and its code can be __init. This prevents a warning once 'bsp_addr_config' gets marked __init. Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> --- b/arch/x86/kernel/cpu/centaur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/x86/kernel/cpu/centaur.c~bsp_init_centaur-__init arch/x86/kernel/cpu/centaur.c --- a/arch/x86/kernel/cpu/centaur.c~bsp_init_centaur-__init 2024-02-22 10:09:03.237033434 -0800 +++ b/arch/x86/kernel/cpu/centaur.c 2024-02-22 10:09:03.237033434 -0800 @@ -213,7 +213,7 @@ static void init_centaur(struct cpuinfo_ init_ia32_feat_ctl(c); } -static void bsp_init_centaur(struct cpuinfo_x86 *c) +static void __init bsp_init_centaur(struct cpuinfo_x86 *c) { if (c->x86 == 0x6 && c->x86_model >= 0xf) bsp_addr_config.cache_align_mult = 2;