From patchwork Sat Jun 3 07:31:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 102785 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1518817vqr; Sat, 3 Jun 2023 00:41:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Qvw5VxEYm1ExJN1k6/Qax7AsYduhhABsxKz3SmQkySzelM7WRWuJB+KDM7BepxQi9aDwj X-Received: by 2002:a05:6a21:2d86:b0:f3:33fb:a62b with SMTP id ty6-20020a056a212d8600b000f333fba62bmr1306647pzb.9.1685778076453; Sat, 03 Jun 2023 00:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685778076; cv=none; d=google.com; s=arc-20160816; b=BzwnBtJezrPkc4JsDFkVe5Ds112vrAN0l4w9nvGMku6G8AdDemelBFj2hgeQeZzHDg Gq5Buxcbv0P/nikaQpUsZ+mC/BzJmQ7uVPQMXCUHTIaH5g74H7TAuCl2+QE0tyxwyzA5 2c3dfLMfCsel4qfJN18UNkQexP4tU3d7sSBLsw9ayMfpke6Wc39RwbdACpgsaD/JzXCj MY+RiyLfBYPYtLWGC62/eSeTPbyyABOeYj8qAW/o9MHOhurt8DQ/mcrP+1hJ5TXtm1kx JwD27X9//4jKzZ+3ixCfT0W2xLEx3pef6Td4PAUHE0Rq02mSke+vJ5UWj/++dP4kX5Y2 pSIw== 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; bh=6ZOQj5I5TzhhgXJALXZN3bh2iXEe5QGZZjtCzF4aNQs=; b=zFlcg/+rkaul1ol+BMeyD2UIZdPsv5kQ65mqyvrh/H0wcrCVbhTI9a5P9gEQfMibyQ ltOVhP+vaJ4xQjr2XSfw/RmJGiOKcHt5y0tTaNnVRhcjWml9Ysrl+1zwGRqUyuxa7swu snKO7N6qcrC8GZ3I1c2QwjS6rh1IznnfXveTFhrySNuejyA3BtfFV/2vYLjRtKNnf/7h MKXrKrLlDwiAb5jUdWWhzzJhTRZsxmTH68FNKeF92GcPXxcI73RdZR3Mq949V7wK/+lq HVqtW28wfpPWFr5SqHcyNF0VZuUQAPtjUAPHgD/HBWAcHu2GdmoawaXGpXCft3N0D7bE Gk+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u62-20020a638541000000b005360d7da56asi2225661pgd.590.2023.06.03.00.41.04; Sat, 03 Jun 2023 00:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbjFCHb3 (ORCPT + 99 others); Sat, 3 Jun 2023 03:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjFCHb2 (ORCPT ); Sat, 3 Jun 2023 03:31:28 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9466D198 for ; Sat, 3 Jun 2023 00:31:25 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QYBM457cKztQS5; Sat, 3 Jun 2023 15:29:04 +0800 (CST) Received: from huawei.com (10.175.104.170) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 3 Jun 2023 15:31:21 +0800 From: Miaohe Lin To: , , , CC: , , , , , , , Subject: [PATCH] sched/core: remove unneeded ptr movement in sched_init() Date: Sat, 3 Jun 2023 15:31:16 +0800 Message-ID: <20230603073116.1128901-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767666432511945198?= X-GMAIL-MSGID: =?utf-8?q?1767666432511945198?= There's no need to move the ptr forward after root_task_group.rt_rq is set as ptr is not used since then. Signed-off-by: Miaohe Lin --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 239fa7a80c0f..bfc655b82bd5 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -9937,7 +9937,6 @@ void __init sched_init(void) ptr += nr_cpu_ids * sizeof(void **); root_task_group.rt_rq = (struct rt_rq **)ptr; - ptr += nr_cpu_ids * sizeof(void **); #endif /* CONFIG_RT_GROUP_SCHED */ }