Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp385488lqp; Mon, 10 Jun 2024 07:08:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYaSo23aRn8UbwT3O3UnlIrjIWv99ED8ZIg/s6thZLOGcs33nWgifZQb6NRSIqrlhdTbC651+zMfwx1FLDwuo0vmSsukFp4D6I6KIRAQ== X-Google-Smtp-Source: AGHT+IEQl8fkgX8nIrb4OEdd8lKwKINeOP5hvn+IQ+QdJzFaCja3B+LVmhE3oTOy4FuyGcwmXJDk X-Received: by 2002:a81:6c8b:0:b0:61a:e3fc:512e with SMTP id 00721157ae682-62cd55ffe6fmr95973707b3.25.1718028537016; Mon, 10 Jun 2024 07:08:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718028536; cv=pass; d=google.com; s=arc-20160816; b=FHurG9FXUfuvan6wKwUOdK9R3UQvKn5tqj96ZKtWB3o0VX1VldEgb4fkuxeMHx7GSZ FZwi+U/joae1nSrCbTkj8x4heHbJwyfu6jv+PPrsBRTMZmIUuZhYutdoRCiOxOG0d/yr hD5SUH47zR8RUCRDSNP1D5R0EAXpA5Dx+kmSn0ugiATy9mXKd3fN0aWpTTiKc/xIPKup IH5VrXMi3EhTyLSIkFfLCQEoG7LijDumic0GVoFVVdvFkemxjw4EaesHGu1SROS9wo2h Is0P08q09lWQ+ZGCpu9wI2OFcspvqnIy2c+OfkGJ1T6ODXCsOrG1Vr5KXXzco1rEu9It lMVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=DUxSHg5fKffszCYYNK+5yxGvTT+l7ZVvoo60IT9JNjw=; fh=PI3JEZawHY5Mp1c8C478XOBwCYSp8CIZIR1msVx+j9A=; b=j5W4hcGT68dpxidgrUORfBaProuaGtYaR+SttdGYYV0R1DrayrpAe4VY8plu52n2pL zMVp+e9uKBj8jfSIqGVzxCKQ0eC6V4uGVWBMXpolV9auwijunvToL3njrLHQOOkwyh2D ymHUAOhdQ2m9IGJtqw6kEh0IjXy/lNCSI3ub88eTwZ+U+s6Ib1Er+2HruizUIWE37uqH iBnpvkF1m45JpgsRosFbztCDKBSlpvmGlJv9Cwat6aHIH9WTIFJiMgwdUZoWnFXecMVT /oJkUpm4iXTjyvtsQgPNNCAXckqOfx4DyRf7/oUaOQqfOuOg9XZgmObFcjk5K1vpQIHl GpZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=o1mVvMLF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=F194St29; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-208328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 71dfb90a1353d-4eb4ac689fasi2173151e0c.57.2024.06.10.07.08.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 07:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=o1mVvMLF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=F194St29; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-208328-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208328-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A55A1C214D4 for ; Mon, 10 Jun 2024 14:08:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 469C2135A63; Mon, 10 Jun 2024 14:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="o1mVvMLF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="F194St29" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0A8F58527D for ; Mon, 10 Jun 2024 14:04:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718028246; cv=none; b=Ok24as1riqLFmrz1T0pilxw+AD1gKbWgUinUcKWByG8qTQ3aNxtJC7YBd+nwnFq8uuqcpTSk+KgGUoTzzvGQJAvZJrTu22YT2ek4SejZ30nzeHM3iGgjpSOTV5vaS3rMnhfglUsX3MyTAbm2jL+fh2vatxrnorQ5eZqwCMZqVs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718028246; c=relaxed/simple; bh=ZrqKQLvRm7mDxthHCvl12TNzBKe2zN8dQWa+nPd+8E0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=IZ/oYlxCmWmEOujay4XOJlPMEesFW+MLlYR3EK+93yZf9IoOIgGzUizpghaqYiPlpx0jv9iq7r9W2nh+7epyGiQM8RR9a447+Qtd7jxJ6MuhPXYuQ3+hWn9MIZVVuegTtaW0ZmHfHcqT7kT2r7wtpHR6474sYbDYrAPc4mMDuZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=o1mVvMLF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=F194St29; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718028239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DUxSHg5fKffszCYYNK+5yxGvTT+l7ZVvoo60IT9JNjw=; b=o1mVvMLF1umJ5sr/CQoy5qPCuL8Y2dhkd8iX+WnXHnFp633Gykk2MnPETUpAoxAr7Ek6FG euMeaA45INlkIUK0L5eIF0DMuDyfMmiRFL0KaYGw02HF970pemPhl5bB1OzODP1IGOx6sx 0gSU1EchLHlCL3KbqGbGoNEegmbyXb4v2/Lyb+qFiUdrdpZrnEwmxsLd9+zF1cTwxVHG1J 8AciTjLlxSFFlOHBmyWD7h7fi7DWHd9akK3F9RPs0rZDArU3UgJbDFsKPKAKUbo1c+Rg1y 3XKC5QktNsi3XucasM+mOygRI4GZ4qRC4azFd52gbMWy9fxWbxg1E3D18/kLyg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718028239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DUxSHg5fKffszCYYNK+5yxGvTT+l7ZVvoo60IT9JNjw=; b=F194St29QZDEkx/oe8qmwuXvjrXpmv1L/SzGUv/mKr7pfc3QyOSOECYILPBKc9gXRb3//h a6+Ax2LdhOy4PFAQ== To: Nikolay Borisov , x86@kernel.org Cc: linux-kernel@vger.kernel.org, Nikolay Borisov Subject: Re: [PATCH] x86/cpu: Move identify_cpu_without_cpuid() into main branch In-Reply-To: <20240521124823.486372-1-nik.borisov@suse.com> References: <20240521124823.486372-1-nik.borisov@suse.com> Date: Mon, 10 Jun 2024 16:03:59 +0200 Message-ID: <87wmmwx5bk.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, May 21 2024 at 15:48, Nikolay Borisov wrote: > No point in duplicating if (!have_cpuid_p()) check. Simply move > identify_cpu_without_cpuid() into the else branch. No functional > changes. You wish :) > Signed-off-by: Nikolay Borisov > --- > arch/x86/kernel/cpu/common.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c > index 2b170da84f97..69265c0acaea 100644 > --- a/arch/x86/kernel/cpu/common.c > +++ b/arch/x86/kernel/cpu/common.c > @@ -1578,9 +1578,6 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c) > memset(&c->x86_capability, 0, sizeof(c->x86_capability)); > c->extended_cpuid_level = 0; > > - if (!have_cpuid_p()) > - identify_cpu_without_cpuid(c); > - You might look what identify_cpu_without_cpuid() does and how the comment right here might be related: > /* cyrix could have cpuid enabled via c_identify()*/ > if (have_cpuid_p()) { Thanks, tglx