From patchwork Sat Nov 4 11:08:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Bristot de Oliveira X-Patchwork-Id: 161576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1584634vqu; Sat, 4 Nov 2023 04:08:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKxL9Qe2fEu5XecAyd39BVVIDZ2NvsmMtsVDD6v8T9nzx1ACgzw6g4YHJDhR7FRtzobM3N X-Received: by 2002:a05:6808:23c8:b0:3b5:6549:ea49 with SMTP id bq8-20020a05680823c800b003b56549ea49mr16515628oib.31.1699096111144; Sat, 04 Nov 2023 04:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699096111; cv=none; d=google.com; s=arc-20160816; b=cJKekx6EDNbgIekQpLyOfIPhq+lRtNM+9v7TwmFbDG7fhWZKqB4a0Jt20K/+zUPu/7 FHY9QdXtLXwyMjLSShDmY6PNG51I5c+gjPHwYrxOvrROBvyaGjhMp1a6i9Zrc9wLpaDc xnU8Iyxkb1Dx3UGMu/AXFlE6bq2MD/gRL++a9oj+ptdATRp5OYPI2zY4v0oJrxm65cmo XC49vJqNkqEP5TJHWtdmhpD2REeb0x4zTgnl7S6nlTFTFDqQn5YhYeIojHCR8VTFqLlh f1K5Vxz3C2G6+Inj5/CWeu8Gdvv91O/g6il6ahxbbM6liZhRG+uXJr9GKFMGjwXSXGyC 9VeA== 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=FSPRaqN2/rm5UlkbJYeUFAdT1l9caFkbTRLitbmMK4U=; fh=XzDk7dREsIm+UVw0lqztUMyd1SOKFIHnZyfOFOkdISw=; b=BenZ0+qCtd8O/nIW6SKyGJ+fzW6qbOnqx7qhxLgl59bzcN67t8mZOXYexMzUfouAbP AQE9+xZ3AVjELdsdZh1fWwPGDKRBCS0R/INzK2N78gQ2X5VioPOs3cgNIN5UXjJIbyxm mK0XohSh5j1SoF9OykZHDdym+v90EVtCSyngszhEh+g25ykTrPaVa4MwgRfKp8oxojIF A3+fQH+Yhj5klefEnKUZ+lYmjCAK4UN+Tmb0ftkIAwK3Cl0eIhZweqb6zrVO6PhH9obg hABboQ9zUTEK9H5J5pxvqn1XTLFzMnN3EvDpcRT+mA3gxEMYFa8VuG+wwjoDCKH++sVF 9bTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IiP5x435; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x3-20020a056a00188300b006b1fb740866si3720152pfh.189.2023.11.04.04.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 04:08:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IiP5x435; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6952B809F398; Sat, 4 Nov 2023 04:08:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232066AbjKDLIT (ORCPT + 35 others); Sat, 4 Nov 2023 07:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231741AbjKDLIS (ORCPT ); Sat, 4 Nov 2023 07:08:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5121136 for ; Sat, 4 Nov 2023 04:08:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4850EC433C7; Sat, 4 Nov 2023 11:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699096095; bh=VZIHdmkP+aP54yfJmioRalXA7EoSHGcpY8h5hMnTprk=; h=From:To:Cc:Subject:Date:From; b=IiP5x435Lj825vE5JslBi8mVcM0YQKP5sCDqeEimwLZuPNLrVJDB2UTWPkWB71+Sn TUt9YuH0jgMMrjv2o0r0yruchUgYBKqAB8XF9tyjjpF+kZOfA2BzNfZ2/KUHL8MuXG u3o9KPd8+hqdzB4iAFPWUR7gddlrSJosjZ0GmLnJGOcUK/pSQjDSXdLYX0EnLI66S3 0bIeH4zO7SGL84Aj5Afleemzjd8GtL/06uuTBcNYq1FHRkAvVs2PyRWRT/zLTZeQGC x6k2yq6Y8soC/GCYFK0gXLll+hSL6NNh3j+eqn1iUS8fdpJ8u0J0DPPSGQ8QT5hyzM Urf8oBmEo5tbA== From: Daniel Bristot de Oliveira To: Peter Zijlstra , Ingo Molnar , Juri Lelli Cc: Daniel Bristot de Oliveira , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Valentin Schneider , linux-kernel@vger.kernel.org Subject: [PATCH] sched/deadline: Remove inc/dec_dl_migration on !SMP Date: Sat, 4 Nov 2023 12:08:05 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 04 Nov 2023 04:08:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781631403893804126 X-GMAIL-MSGID: 1781631403893804126 The commit "5fe7765997b1 sched/deadline: Make dl_rq->pushable_dl_tasks update drive dl_rq->overloaded)" removed these functions on SMP, but thet !SMP was left. I thought that the compiler would complain about the unused functions, but it was not complaining. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rostedt Cc: Valentin Schneider Cc: linux-kernel@vger.kernel.org Signed-off-by: Daniel Bristot de Oliveira --- kernel/sched/deadline.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index b28114478b82..6b17220b554e 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -718,16 +718,6 @@ void dequeue_pushable_dl_task(struct rq *rq, struct task_struct *p) { } -static inline -void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq) -{ -} - -static inline -void dec_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq) -{ -} - static inline void deadline_queue_push_tasks(struct rq *rq) { }