From nobody Mon Nov 29 15:43:12 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0193918BC869; Mon, 29 Nov 2021 15:43:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2qPZ2sbWz4nbq; Mon, 29 Nov 2021 15:43:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0060825488; Mon, 29 Nov 2021 15:43:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATFhCHQ065928; Mon, 29 Nov 2021 15:43:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFhClO065927; Mon, 29 Nov 2021 15:43:12 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:12 GMT Message-Id: <202111291543.1ATFhClO065927@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4b6f4db3410d - main - libc/x86/__vdso_gettc.c::tsc_selector_idx(): cpu_id is calculated but not used List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b6f4db3410d3d00c5e0e597243bb7d945356213 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8u8cEtz2vaAb2ouARaSpO3UdeGeRt5MbW0MmWJtLzeA=; b=MeFfnBpJ9O+6nekXWpIyouwuNFOpw7ZwirfYzTIu0g5XnpFLj1Pe+SkC3pv/9AgaK8KOjG ib1ScNTqFWkhLGNTjLDYqq2pySNgAouZEdYnrikpy/djtozWtTMVv5npeNeJVQjOo/v+es iqMnCqAvqMxBqitUa77i2y7SW2vInLeAARy8K5/KeIbFYJ7qqAADlkDoP6qHtnnVQdy5i3 GjYoOuaBeRT7fOEM63jZ5g0VA+WzGP/ICXj9XIXsF4scOR/j8yOVXna/wMvCQMAu2U+iJy FA8zmBweiioVzUF5vM+AStY/BPmf0BrbeVs7GIhjccJkiafHEgK2e7Nu8A7MCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200596; a=rsa-sha256; cv=none; b=JGFzCmZ5veXwaaCFgZXrmeFcWsdyWsWAiCInwmdWVYzkCe3u1MXjphJ8mC6CNFXX/8vVAG F3DoPRwzcxnflVF7FIfYHXyKUEILVxfN84Me+6cpm+7jpDnVQPGQ9+yuPxPLjsM4R3nIRx BqSnDZhUCTL8esaZRtUGags4qHmt4EN8yX+mSvgVr02tFOImRohOyVXXrglR1Z8xWdU/N9 f7HSwH2H1055g80vIhLvlIOMqp/Z9pUTdS9y1dF0r2pXw9ZZ7EXBp+6WHSOR4eLzE+dHuU nEe6KTeGMtaatA2hroNAw7f2Uk8CbEANsqmw6FUgEDuQjzRxWd54M4tqIVVfhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4b6f4db3410d3d00c5e0e597243bb7d945356213 commit 4b6f4db3410d3d00c5e0e597243bb7d945356213 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:14:20 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:51 +0000 libc/x86/__vdso_gettc.c::tsc_selector_idx(): cpu_id is calculated but not used Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/x86/sys/__vdso_gettc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libc/x86/sys/__vdso_gettc.c b/lib/libc/x86/sys/__vdso_gettc.c index 5cc847e31c0e..b3f3de9f4203 100644 --- a/lib/libc/x86/sys/__vdso_gettc.c +++ b/lib/libc/x86/sys/__vdso_gettc.c @@ -147,7 +147,7 @@ static const struct tsc_selector_tag tsc_selector[] = { static int tsc_selector_idx(u_int cpu_feature) { - u_int amd_feature, cpu_exthigh, cpu_id, p[4], v[3]; + u_int amd_feature, cpu_exthigh, p[4], v[3]; static const char amd_id[] = "AuthenticAMD"; static const char hygon_id[] = "HygonGenuine"; bool amd_cpu; @@ -162,9 +162,6 @@ tsc_selector_idx(u_int cpu_feature) amd_cpu = memcmp(v, amd_id, sizeof(amd_id) - 1) == 0 || memcmp(v, hygon_id, sizeof(hygon_id) - 1) == 0; - do_cpuid(1, p); - cpu_id = p[0]; - if (cpu_feature != 0) { do_cpuid(0x80000000, p); cpu_exthigh = p[0];