From nobody Fri Jan 14 18:10:21 2022 X-Original-To: dev-commits-src-branches@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 AC6A11942682; Fri, 14 Jan 2022 18:10:22 +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 4Jb8V60J3Sz4pLK; Fri, 14 Jan 2022 18:10:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642183822; 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=hz4qI9ksJ79LpsCWvt5QLMzzZ/H4aYc/K+MR8IMjxpI=; b=U+kciuxRbDjMJjr408uBm7pL8c5pHbbAflQKlJpF7E/kpEyyGju0PdMRVZx/0EdrqZYsVK yx/JMXbwN/3hjxrj1SDCCZmZG7ATOmhIy4T95hx6bTtX1TrGwliwzoRuSk3a0oczEC/rUj 2cK3wpzb36BE7U6Bg8RoAGnsRCV+xMqCiIXYfqy/QipuShvAZlBG2c1QaA+3wou8h5foGX GRLLb0VyWIUBV6EJB53muCgovsIkkb0O/cOgv1IKsJIDqZa8J8hYKJly7elUrICl6OR45m NQfDID6mO3H3ym3adJtQhaZKVnpZBb8MquLKzBhskOxYvb9N6q74M1TKUPqwnw== 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 5F2E51870D; Fri, 14 Jan 2022 18:10:21 +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 20EIALaO094912; Fri, 14 Jan 2022 18:10:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20EIALBC094906; Fri, 14 Jan 2022 18:10:21 GMT (envelope-from git) Date: Fri, 14 Jan 2022 18:10:21 GMT Message-Id: <202201141810.20EIALBC094906@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 6685c78631ad - stable/13 - sched.h: add CPU_EQUAL() for better compatibility with Linux List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6685c78631ad1b08af2c04a139af4829daa1d07f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642183822; 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=hz4qI9ksJ79LpsCWvt5QLMzzZ/H4aYc/K+MR8IMjxpI=; b=msgW2wIQqzohyaiZEiLXL5iv0Sn1canRusIx+fcOJefeBy8LlqwRujohENfLOt3wEb1y/U ot612JrdD+gAF4bHoynk3u4dZVFe+iMJAN4/VeAASdCt8sGS9yL81xH350WqUpr2rbpR6+ 0cf5uF+YZuX5AxgT+bEemQEESR9909EHIH7cAA2w8qRcEU63fyj7SyqFsxWyMoocFwMHGB xD99Tm+PZpQUyiBuhfaDLEz8myKHXwY+t5mDLnrWpqi4rG6krE4eXT2TmF/afGQSHD1cwj mrm7eMfkgGidtZIe8anCSeGXTa9nLz1sX9g5j7bKxIRn0uiYHRcLhNL8PqvdEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642183822; a=rsa-sha256; cv=none; b=uJVH3oWA6tCSw4gXDSnJWEtZnXXyRsQ3EwlnbB/ulyhEU5RL8zIVjL3V+tuzh3BUDw/idj 0fAgrZoWkTKbdJowLoKk12k4M5JSvuvBNviKYrkZ2/Mi8yHqBFmR33zoU6f1eZ025N9jPU QaiQTVFCJ6oaAd+vcmclRtdksoKJxRQbSyveAepCVnyuUOMB1IqX8FlMLB+bBLxZFUKuHl iuqg3OMIg2e+lK560PMn5p9ClyEbZrg+5ztOrZ9g8MpR7n8xCKrx7sfFZ6ezgQO4dova2G tggxCozY1O5iVQjjLqHFzphCvhfxHsbuEdSqfEZe63WTYyLmBX5C5IFQBT938g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6685c78631ad1b08af2c04a139af4829daa1d07f commit 6685c78631ad1b08af2c04a139af4829daa1d07f Author: Konstantin Belousov AuthorDate: 2021-10-30 07:36:24 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-14 16:17:29 +0000 sched.h: add CPU_EQUAL() for better compatibility with Linux (cherry picked from commit 43e6f07b06e05cd36c22b204be5be94c2807aec8) --- sys/sys/cpuset.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h index 9ef1a65f4506..602f73fbe5e4 100644 --- a/sys/sys/cpuset.h +++ b/sys/sys/cpuset.h @@ -50,6 +50,7 @@ #define CPU_ZERO(p) BIT_ZERO(CPU_SETSIZE, p) #define CPU_FILL(p) BIT_FILL(CPU_SETSIZE, p) #define CPU_SETOF(n, p) BIT_SETOF(CPU_SETSIZE, n, p) +#define CPU_EQUAL(p, c) (BIT_CMP(CPU_SETSIZE, p, c) == 0) #define CPU_EMPTY(p) BIT_EMPTY(CPU_SETSIZE, p) #define CPU_ISFULLSET(p) BIT_ISFULLSET(CPU_SETSIZE, p) #define CPU_SUBSET(p, c) BIT_SUBSET(CPU_SETSIZE, p, c)