Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1273880pxu; Mon, 23 Nov 2020 16:43:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxr8krzV5z5ahctxiIAWTuErK8YXJ11vm+Xu5QXG3RDNHbT9/f+zL04envjpU4cMyowO5Fs X-Received: by 2002:a05:6402:17f0:: with SMTP id t16mr1699440edy.107.1606178611187; Mon, 23 Nov 2020 16:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606178611; cv=none; d=google.com; s=arc-20160816; b=x8KhquhxgwLPF1UlRUNiDfXv20STHlk2/nCjMgM81Hd1DhwBpaNkdtQAySxCERR4ZX fJgXxj8gs+JToK0iHNCR9pGmU43xNz/si0WGX1I8kh+D/b4vLWsXuZTl0+1gfGIDlkR6 rc5w078/v13xysc2LPZImCE+M17NjkuJZftWG2YIflQVk3YITFgaOGEQqo0Vc+p/fNCH GHUl2V+BNzoIlqRAaYaOGsVGW7z9egt/LqrSuEujfT9mV69LnjpwivJIAXVtTpJKjXha 7ontOaO6HeD3SCLOucC+Ab/3NnQh8KRykWA0sMop0iU5UMyngB79oiZsTcLZebQJX+zy h0MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tcox38vWgLUDdaMTxv7HfS0wKdBiBL9VU/KlvGDv3U0=; b=gd+WGxLAEqlYZlNo3v+pcdwh2WWa++KJNYMzjojFn7ja8jZITM6kJD6NQMbA5fJX4X k6+5gfjV8wuaiVxnHeZOKms374iSACaMzcSvZnLFStblDibpN7N2eizXJfDKU4/EvMHn zuVVxTquKM02d0yU+50WRsQ57nxSJvguw+rGxk/EFPX+xoWNxJMeUXbeJFejS2y+Sz00 /tKiEKyWNrzGzAb55zOrGJ0whAcGogd2q1Ry1KKAaA2aTtNIYdBqUWte9Kxh9HKrpDlO rFvLnso6rYMoqj852GSTnDrjbQY4KKQJVeJpXjg+6vwrz+PDfeviK/HhsnFCEG1pbzwm RuNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HeEMCdjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si8072156eds.497.2020.11.23.16.43.09; Mon, 23 Nov 2020 16:43:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HeEMCdjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728511AbgKXAAB (ORCPT + 99 others); Mon, 23 Nov 2020 19:00:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbgKXAAA (ORCPT ); Mon, 23 Nov 2020 19:00:00 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 809CFC0613CF; Mon, 23 Nov 2020 16:00:00 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id c66so16594773pfa.4; Mon, 23 Nov 2020 16:00:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tcox38vWgLUDdaMTxv7HfS0wKdBiBL9VU/KlvGDv3U0=; b=HeEMCdjnNPKhtEBtLIIMu6RxGmuo/I/Ws5Q1QHhxO79eNCoVv+9IqfzoF4eMbOaila fd1JspMILxCP2DZIwmXAc+HiLJZMpuypGqRgTXmJbZJjmona070n4KmKY4w2IossjD3c 0ZH0Mm6Qx0ZHtrHpaDwCz1mRUiICy7eGbELJN8bP/jMwjuCv6A6nTitO89eZwQ5FLqOu PUKxRiiLYzNNmakpeEFtC+BrMJnSjX3/0NqERZOM3xBJgRMsml+lbSz9XnVWcKJRjf+P hIZFHJK35IcNaXQ1BKWEiyTaTxDbpslKrgfQ89CjAzkkaRrqtpyM6k01rU7W2ZgOaL4Q 2Gdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tcox38vWgLUDdaMTxv7HfS0wKdBiBL9VU/KlvGDv3U0=; b=mUWfvgk0Ka6k+AGT4bK9IxWC/Q9rNgaFMsaPNtC8jFINnNp4sBZRGQhebEa+BlqcWc ZK0PaEZcbknttW7Gsb/XbmA3k6ks9gQ5HYVaGTln/4h5hRQ1PwroONAr6+QRGxLd8tfP ZJ477Qi4qoPxjYX5Sx5cFWCDd+9BRlbhIC/XH7weqhpHxPC49JgpxCliWXB1vifcLqNJ 17u41ESfs0uSreyptvA00iqv2q1NDSIbXQVzCyis5GklJc/2ai8JSetOjza4SOUe4nI4 KZE9ilWOEpNMZvCYCKTDEUFc+PeK+O8MO+x6cXSmCxs6oOIx29ILVlFXtDyHrG3d3tlS eXmg== X-Gm-Message-State: AOAM531U66zntNjglF1F+YJp9c3+aBT2w/wp6d/v1IhNROtnXqEw58Ic P8tlUskMNrVQKy83chFPLBrjWOkdQNFu08ez X-Received: by 2002:a63:8f1b:: with SMTP id n27mr1545531pgd.74.1606176000058; Mon, 23 Nov 2020 16:00:00 -0800 (PST) Received: from localhost ([2405:6580:31a1:500:1ac0:4dff:fe39:5426]) by smtp.gmail.com with ESMTPSA id n72sm12795716pfd.202.2020.11.23.15.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 15:59:59 -0800 (PST) From: Punit Agrawal To: rjw@rjwysocki.net Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Punit Agrawal Subject: [PATCH] ACPI: processor: Drop duplicate setting of shared_cpu_map Date: Tue, 24 Nov 2020 08:59:51 +0900 Message-Id: <20201123235951.96243-1-punitagrawal@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'shared_cpu_map', stored as part of the per-processor acpi_processor_performance structre, is used to store cpus that share a performance domain. By definition it contains the owning cpu. While building the 'shared_cpu_map' it is being set twice - once while initialising the performance domains and again when matching cpus belonging to the same domain. Drop the unnecessary initialisation. Signed-off-by: Punit Agrawal --- drivers/acpi/processor_perflib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c index b04a68950ff1..b0d320f18163 100644 --- a/drivers/acpi/processor_perflib.c +++ b/drivers/acpi/processor_perflib.c @@ -616,7 +616,6 @@ int acpi_processor_preregister_performance( continue; pr->performance = per_cpu_ptr(performance, i); - cpumask_set_cpu(i, pr->performance->shared_cpu_map); pdomain = &(pr->performance->domain_info); if (acpi_processor_get_psd(pr->handle, pdomain)) { retval = -EINVAL; -- 2.29.2