From nobody Thu Jan 04 13:40:17 2024 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 4T5SQB0kkZz56Q2p; Thu, 4 Jan 2024 13:40:18 +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 4T5SQ951YCz41c0; Thu, 4 Jan 2024 13:40:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704375617; 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=JvyTw7HthhS1k8rWF0s4OQBi7ZyHAKOwdCKnmMW9gWM=; b=ZL5FO4MFsl02Ik2cLyP480xxGihKim8ru2WD+67Fj87WBm2SNhRmHIZgyiOufHHhtKL+w+ CVXrf+zCBn6qtwmm45WanL8UFmI4zawhmDUpmdcmPp4EVmRDSWapF5HAMayFuHXBjOPDqk dQzm7mH/ZZ+WptsXPQIBQRuzzwOjxVbtmeNzIPdv3gADlBWh5d5DKJBoMFx8Eb503M60J9 ku4ZX8q+ZetvY+2LS9ChyN7UsLJ12Goaixnct4tOdEXDjxI0yrLm+R6iFNZU3b+zX0Z/A9 dmkFhRsamc0CUw6aiIk16i+VD/MvaYN+K3edDbohLgvu3ieYonrb7AqA4NJ+sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704375617; 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=JvyTw7HthhS1k8rWF0s4OQBi7ZyHAKOwdCKnmMW9gWM=; b=pywGdhrwP4g+dfUuWhRHcGo2Mn9fjp2fjRcAK2C621DUUg2VVvMVYNzOxWot9NGKLMUwq5 6KI7oZ0R6a3ByOdg1CWBXoXQ6xkaP+M5vugQwPQmG4YB3CrOdap05brsf8/T8raRlMwKH1 Y70/5Q9sbONxpnu0A/INrzfXm/WKXHWquKARlJ4goF8dteqgvJ6lJEh9k8o8bIFa+slRSr XIZeCkj4PwIx60U6Kp+g+nea5OGCzTDTFPfnnHPvi0/knejtjBnZnDy4D88yZfbVoxiY60 YQRMuTa+cJCAlnw855lqJsUaZVOAlXf/doNi+En8GvCyc9vJ2AY0pj+gHGP4Aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704375617; a=rsa-sha256; cv=none; b=i+pma0RS2U9YHryimywNrlpoI2rkVRbe9aGSk7Ww4gfKriR6Z4YxOweXhdhJgt38h3mcyY BGJeedSQT883mMn+0Q3nEd/m6xPD5Zva2wU/xxTY1s0b2pyTnUdpuVjA9XXrqque3Q9ol/ FLUKjg7WC6Zok1wVrpD8eYFdB4YF1xIXgT6pMTmsq0VDLzudvEOi0+QlkJPvfo1ESlJsA7 ZccJCjz3/FaCrSwRwl9B5oDvR80G2vB53jdB/iCQIhVVio3BQxiWd+5ATkaXvl6Qv6qolZ wOpxmv0mS3E0Yrxdc+tT7J4+6t7x3EeSyqKNQ1uqYFMj68hljjXPif554PExrw== 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 4T5SQ946LmzFgv; Thu, 4 Jan 2024 13:40:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 404DeH5C041496; Thu, 4 Jan 2024 13:40:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 404DeHr7041488; Thu, 4 Jan 2024 13:40:17 GMT (envelope-from git) Date: Thu, 4 Jan 2024 13:40:17 GMT Message-Id: <202401041340.404DeHr7041488@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d63ea0367400 - main - x86: Make cpu_model[] public 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d63ea03674007451682334fa3897918c5c3711a4 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d63ea03674007451682334fa3897918c5c3711a4 commit d63ea03674007451682334fa3897918c5c3711a4 Author: Mark Johnston AuthorDate: 2024-01-04 13:24:04 +0000 Commit: Mark Johnston CommitDate: 2024-01-04 13:39:53 +0000 x86: Make cpu_model[] public No functional change intended. Reviewed by: emaste, imp, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43281 --- sys/x86/include/x86_var.h | 1 + sys/x86/x86/identcpu.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h index 44314456d8bf..f3677d84570b 100644 --- a/sys/x86/include/x86_var.h +++ b/sys/x86/include/x86_var.h @@ -58,6 +58,7 @@ extern u_int cpu_mxcsr_mask; extern u_int cpu_procinfo; extern u_int cpu_procinfo2; extern char cpu_vendor[]; +extern char cpu_model[]; extern u_int cpu_vendor_id; extern u_int cpu_mon_mwait_flags; extern u_int cpu_mon_min_size; diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c index 7b06ecab2ad5..7fa35bd50244 100644 --- a/sys/x86/x86/identcpu.c +++ b/sys/x86/x86/identcpu.c @@ -157,7 +157,7 @@ SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD | CTLFLAG_CAPRD, machine, 0, "Machine class"); #endif -static char cpu_model[128]; +char cpu_model[128]; SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD | CTLFLAG_MPSAFE, cpu_model, 0, "Machine model");