Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp811343ybh; Wed, 11 Mar 2020 11:17:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvHg77yIayoLybnakQPRvv1JAcbY7kVwgvtp32MDIIqWTG4pFtquaD+lJFC3GXgrPZfmNic X-Received: by 2002:aca:4b95:: with SMTP id y143mr5961oia.36.1583950671492; Wed, 11 Mar 2020 11:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583950671; cv=none; d=google.com; s=arc-20160816; b=SbPpIdZlGaRROBnHNlYf3x5qAdTUuMy+6lbWoCSGHKo6XVqqm29TCEFg+2CaiszNoi iIyO+U5smMavkoy7QGTF/V5qOF7yBNzH+kFUxBs5wAt2bcfZ96CB6nnTwZ5dHAo1qc/Y 95ag1wLwGX0lx4wPmXq562XXPAKh3fjtxkYEQstlhnD0hkyUBJG98dAB1HhQhhidvWcC 7qJVlrrWj+u8//81dvyl6PJv3B1ie1tsYdzIKsXmWnPH97AMqJ7oyB0U0JBJkz29nLua iZUGlfLpRN5cBqPdl53g9dc1jgUp0vXYUK2+2VHhGiXj7P8kKzpBYpec/u6IXC6D4cWR xdFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WDymi7RRkL/aJeBAAlOb7nPPQz9qQkdJwYrAPOEFX4k=; b=gF2+kelWYFri1EM6vQGJ2VqWIIsT0HHlwznhtCrw0LOnrHznvrFUb/cdKKyXT+qc44 zS0d9qOFqKwtxu2o3+seYYW1a/29/qfVhCKLeBXB74ID3pee90782eguN/OhKrTLNt1u 0kGLP7IMIl8i74tI0qzwWezh4S1Myv5VB87FRfG+xm8fc604Nzby47IYzvDokCLTfF6j d3fjpaAWYWxbfsba85bx1PyMsNn4YW+8T7gO27HT4WXW/fR3/J/n4gQl8ZkUuw8kAYFy kYf3mZI7kUV0PbrP/0uspVRXbj76jYrf/R8cipKzIwDK4dKiHrhIPG8p07o/itg1XDx4 QPNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si511368oou.60.2020.03.11.11.17.34; Wed, 11 Mar 2020 11:17:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730825AbgCKSRA (ORCPT + 99 others); Wed, 11 Mar 2020 14:17:00 -0400 Received: from foss.arm.com ([217.140.110.172]:53230 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730808AbgCKSQ7 (ORCPT ); Wed, 11 Mar 2020 14:16:59 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A8558FEC; Wed, 11 Mar 2020 11:16:59 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 74BA53F6CF; Wed, 11 Mar 2020 11:16:58 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, Ingo Molnar , Juri Lelli , Steven Rostedt Subject: [PATCH v2 5/9] sched: Add WF_TTWU, WF_EXEC wakeup flags Date: Wed, 11 Mar 2020 18:15:57 +0000 Message-Id: <20200311181601.18314-6-valentin.schneider@arm.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200311181601.18314-1-valentin.schneider@arm.com> References: <20200311181601.18314-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To remove the sd_flag parameter of select_task_rq(), we need another way of encoding wakeup kinds. There already is a WF_FORK flag, add the missing ones. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rostedt Signed-off-by: Valentin Schneider --- kernel/sched/sched.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 2a0caf394dd4..0d1ab04622d0 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1654,11 +1654,13 @@ static inline int task_on_rq_migrating(struct task_struct *p) } /* - * wake flags + * Wake flags */ #define WF_SYNC 0x01 /* Waker goes to sleep after wakeup */ -#define WF_FORK 0x02 /* Child wakeup after fork */ -#define WF_MIGRATED 0x4 /* Internal use, task got migrated */ +#define WF_TTWU 0x02 /* Regular task wakeup */ +#define WF_FORK 0x04 /* Child wakeup after fork */ +#define WF_EXEC 0x08 /* "Fake" wakeup at exec */ +#define WF_MIGRATED 0x10 /* Internal use, task got migrated */ /* * To aid in avoiding the subversion of "niceness" due to uneven distribution -- 2.24.0