From patchwork Thu Feb 7 10:46:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 157686 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp484532jaa; Thu, 7 Feb 2019 02:46:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLJQV3XmaoVkCh/xNF0WWwN+UZqAoJswFMtLJY5A314Xmz1TPjvX7V/dhXJvMTZ0Nuz/6+ X-Received: by 2002:a63:5d55:: with SMTP id o21mr13878604pgm.92.1549536377750; Thu, 07 Feb 2019 02:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549536377; cv=none; d=google.com; s=arc-20160816; b=Kf03B6ZaP3KkAhYMUYbmF1o+4Ku060DkjxSWLBTo1KAWQ/CNcfAwzMlGj1jhSHqevO uqD3CjC9Y0IffLhiuEQ5W4AL9kUeWteYdDZhGhyL/rPanZ66PTnoyTQ2+99z0jKvZovv MJnKW+16D6+qv6r97nGzkuARzMJZdCkiDrXoa3ou6Qa+qjdjO+DpXqHcDskUjnTz57ZY ZXbPMmPhDiaaboDMedV0cq3PXzSUOCpqcVls59M282Cbg+6Tix+8PWNp0grSV+r2Vtp0 EVdoMJ5KO7dE90KTEmXmZwiZvUgyZAH9sGulQzJ8if2mSaMYI6qIW2vMAQhWnz937YiL INEg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=b2MAKObbwgm8lJA0u2i67iep8woAREaJgQav9usjeCw=; b=FQOf/8naXxjFmLgmjIcEI7hjL6nxedY52GSk34Sl3DdrPnqFQDMgt+up0tfcR8AMBr d93NTGeo/R/4ihUYBBcT8TOm2Lsk21xoKwXFRsCV7xjpkB9iK4tvEKcXTJH/bsHpcbfZ J/Vv61uSJNutBt7YobRhw01BK6f0GJbVtZwOwlTQDoHOjspMsBJXAhhSQySZvXnMTM6z nvI31VdZ5qG3/8VXzces7fKdiTDrxdqIS+xkrDbUN+zX4LfFvut5L5V/NMswPZZBRW3v EtvFN6a7waSEsRvCp4nSokXewIO8QTM6nuPs4EmoMcivOdArDHGXXn8d6Y3bwUDRK2iz /Bhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VCdlDgXP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si3177327pld.331.2019.02.07.02.46.17; Thu, 07 Feb 2019 02:46:17 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=VCdlDgXP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726799AbfBGKqP (ORCPT + 31 others); Thu, 7 Feb 2019 05:46:15 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34829 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbfBGKqP (ORCPT ); Thu, 7 Feb 2019 05:46:15 -0500 Received: by mail-pf1-f196.google.com with SMTP id z9so4597089pfi.2 for ; Thu, 07 Feb 2019 02:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b2MAKObbwgm8lJA0u2i67iep8woAREaJgQav9usjeCw=; b=VCdlDgXPZVK2DY38U2rVU5hpR0QczAQdo1nb8NTcvLX0RVv3WskMBzr6HTw3oTAzsD K946YhyE6G9QT4QCvLWhffOatMbZSkhbIYjGvNXjjvAz9XCSicrPX+2xI42KPE3uJ7X8 Kw0UZBntq93e56NTgna1QtOEr/J0ZWAfwTCpmF6VYn8/llrc4mcU0VRdV0ZZl6k9UGmL lD4fO0Nn16IKcFWsLDVBDcN24JY6+08jChQVJmSWAL4dZd3jquRsdytgBUM7RZg4RPMI DKTDC0eGnil+yKfINZCL3ekvz0qbwmm9xeGwORGUZmI7UriMj/1zfaWiQV65aMK021E8 +laQ== 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=b2MAKObbwgm8lJA0u2i67iep8woAREaJgQav9usjeCw=; b=dcwf6ltloozhN/gFjLbu2+L5mVDX8BuPPGaVb6bLGM7BE9cNx2evnt5x6peTlv5nSH zmVGW4Auic9RQZn0q5wm5w+woxUn07aZ6WcjAef1yXaXoAycinzDHNnFCR9vpfm9IySc +t0AGaJ03Axju1O3Q+MqX/wLdzpjc9YTHLVC9X34F+vAHcbhMrIZM0Wh6tB3a2UBo352 lZtK8oMJRqx/puS4DDAhCYSx3NKm4/MVCVdjupc1tt7eP65Dv/WBV1mtEsLiRNmsg3em aZ5MiH7EKHoiAyiN8YSIAnrXA2/6oY9f+Eh1szwQL/rHCYuvvxOAh67VkTUayw1Bab7B Dtfw== X-Gm-Message-State: AHQUAubsdwOFVMFQVgwzlYfSCfHd/sS2lSCSH8EDbc12H63F1vIcApIh qK1hxDAiPYa4Y+TgF1mrpVPXyA== X-Received: by 2002:a63:534c:: with SMTP id t12mr14114184pgl.205.1549536374129; Thu, 07 Feb 2019 02:46:14 -0800 (PST) Received: from localhost ([122.172.102.63]) by smtp.gmail.com with ESMTPSA id m67sm12209839pfm.73.2019.02.07.02.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 02:46:13 -0800 (PST) From: Viresh Kumar To: Ingo Molnar , Peter Zijlstra Cc: Viresh Kumar , Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] sched/fair: Don't pass sd to select_idle_smt() Date: Thu, 7 Feb 2019 16:16:05 +0530 Message-Id: X-Mailer: git-send-email 2.20.1.321.g9e740568ce00 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The parameter sd isn't getting used in select_idle_smt(), drop it. Signed-off-by: Viresh Kumar --- kernel/sched/fair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.20.1.321.g9e740568ce00 diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 38d4669aa2ef..8d5c82342a36 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6102,7 +6102,7 @@ static int select_idle_core(struct task_struct *p, struct sched_domain *sd, int /* * Scan the local SMT mask for idle CPUs. */ -static int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target) +static int select_idle_smt(struct task_struct *p, int target) { int cpu; @@ -6126,7 +6126,7 @@ static inline int select_idle_core(struct task_struct *p, struct sched_domain *s return -1; } -static inline int select_idle_smt(struct task_struct *p, struct sched_domain *sd, int target) +static inline int select_idle_smt(struct task_struct *p, int target) { return -1; } @@ -6231,7 +6231,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target) if ((unsigned)i < nr_cpumask_bits) return i; - i = select_idle_smt(p, sd, target); + i = select_idle_smt(p, target); if ((unsigned)i < nr_cpumask_bits) return i;