Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2606293pxb; Tue, 24 Aug 2021 03:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWc+E0FAZdnJsUZB091FbATw/DV1vZH3wbTqa7OFRsZ2uV5HqAlljy4W1ywkcthJ0Jg3oU X-Received: by 2002:a17:906:87d0:: with SMTP id zb16mr41323905ejb.143.1629800404329; Tue, 24 Aug 2021 03:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629800404; cv=none; d=google.com; s=arc-20160816; b=yreQ2ipdKJusZiWE6/ERStXWuLXy0PAfErGqAk43lW+kOu2oJ8wQKGnsETNNSVpOeR b8vLOKw9BTLqjIq+319BzCkQG/GkCkuMMOWW1hG4GO7THo+uJIDRcmn5KR8TDei8UHmH RvjUB8/9MGkKOyjix6kQcdr2HBRi3JlCymQVyY8FXZfPnnf/nijp08nzbdGS9wu7EhTo KVsUcFejQ3yHcG64T7Na3cgrnW8NUvstNoIvWNh4n/vPO0a6bCn1npYQryXd9Ivxyn1+ oxY+obNtnkArgBJWFblOJOHmzMYup519T7mCjkvouAAHuj2ptdu9usQ+SXl1n8ioXM7J 8wJQ== 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=coF2UljFE8rDsrWi34y6jxCzCxj/fWB6DzykIuG23bY=; b=wIbGbhyDYSSnqIwY2T3/Ae3uZEVDsYkX88+46aNqoz21E2vcvmNNSU7jNXCoJSPAcu SD3Yv3D19P+eHQtP5kd0Os+mxeBUBevJVCLvrgGrC6W4EQcswDOljxBLKC1XS2HtxQqH Q+TkgAmnbnUROOc5q1M5jEFR4Qvl8Zkp+MFiO/QV1hAy2+6znh5ql1XX0QlWB83nG1qz uEw4ajv6dOQfDSJo125jxfzg4Al0GayMDrD7MLGwgH6cZR2pomsxxnYkxcZuTz3KkAMu 7fOlahPpX6X6zhhXNkVPaj+Z20TB3isgG8MjMseBlA5cZFi400ayfN3TIJIWJo0MNaRl bsUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=dPTi5iQ7; 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=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si16430093ejp.504.2021.08.24.03.19.41; Tue, 24 Aug 2021 03:20:04 -0700 (PDT) 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=@linux.dev header.s=key1 header.b=dPTi5iQ7; 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=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236136AbhHXKSs (ORCPT + 99 others); Tue, 24 Aug 2021 06:18:48 -0400 Received: from out1.migadu.com ([91.121.223.63]:61860 "EHLO out1.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235933AbhHXKSq (ORCPT ); Tue, 24 Aug 2021 06:18:46 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1629800281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=coF2UljFE8rDsrWi34y6jxCzCxj/fWB6DzykIuG23bY=; b=dPTi5iQ7g5vvneVmk/0V/QUhR2OaSCM682GYwCnfRYyYxGa4M0Vhz2AYe4peajkenggAZ8 w8YybFk3tPqB3q/ZfAvE9XcJMMMtrJzxQJUlYR+aJSvBE4SQI9eao3Gic+uMDSvzif99K1 htKKqEIg8PSgY/dmq0QC8GLfgXVBdmE= From: Yajun Deng To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org Cc: linux-kernel@vger.kernel.org, Yajun Deng Subject: [PATCH linux-next] sched: stop: Remove unnecessary CONFIG_SMP Date: Tue, 24 Aug 2021 18:17:47 +0800 Message-Id: <20210824101747.6350-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: yajun.deng@linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This file only compiled when enable CONFIG_SMP, so there is no need add CONFIG_SMP inside the file. Signed-off-by: Yajun Deng --- kernel/sched/stop_task.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c index f988ebe3febb..8c9f9313df31 100644 --- a/kernel/sched/stop_task.c +++ b/kernel/sched/stop_task.c @@ -9,7 +9,6 @@ */ #include "sched.h" -#ifdef CONFIG_SMP static int select_task_rq_stop(struct task_struct *p, int cpu, int flags) { @@ -21,7 +20,6 @@ balance_stop(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) { return sched_stop_runnable(rq); } -#endif /* CONFIG_SMP */ static void check_preempt_curr_stop(struct rq *rq, struct task_struct *p, int flags) @@ -130,12 +128,10 @@ DEFINE_SCHED_CLASS(stop) = { .put_prev_task = put_prev_task_stop, .set_next_task = set_next_task_stop, -#ifdef CONFIG_SMP .balance = balance_stop, .pick_task = pick_task_stop, .select_task_rq = select_task_rq_stop, .set_cpus_allowed = set_cpus_allowed_common, -#endif .task_tick = task_tick_stop, -- 2.32.0