From patchwork Fri Dec 15 01:42:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 122039 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7576140qgn; Thu, 14 Dec 2017 17:42:59 -0800 (PST) X-Google-Smtp-Source: ACJfBos1RvvkFwHSyUcY2mXkc/XQFYVCAxkhAUUNWtJ+Xgc8+bV21rf38u2ucSTLEkL/WDVEpx81 X-Received: by 10.84.224.206 with SMTP id k14mr11536378pln.403.1513302179506; Thu, 14 Dec 2017 17:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513302179; cv=none; d=google.com; s=arc-20160816; b=xljYh0uEztq4YTgOPKteV4qi6apQUWnyFxiep1vNuNWYA5hcKVPVhgXKGfXbjN+8a6 KgzPgCeNlMtKdJib3COFB70fkXKv/UaabZJxP6/k+WvBRW9Ue0RjgF1s/jdaEkVOs6Vw zuUY33AZ9vhXHJb9ncZAoEl7/pJ7H8ZeYHMJ3cOW25kRyapmN6Y4cI334N1v//D07csH LKnezGRx0oVbjDF7fa5OCidFxUQc3zrtZpkyjdArJ7PdHzQN632h6jg/9NUG/Er4/3TN mfs7mAWrbVM1/SKEgN7DBIRchij3yPoCrP7BzV2A/2LCe/6+O1lVM/HFUPWDAR61ejb6 fWjw== 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 :content-language:mime-version:user-agent:date:message-id:cc:from :subject:to:dkim-signature:arc-authentication-results; bh=/P8j9WqcYEj7xY0F19x0+95/6p/B5ptoTXNKTnO4QUg=; b=zjqefMjUBhkAJaPqbYV/BMpJKtMtlIeiOtRpOh6UpFkGE3X6RG6Lj8hZJ9zDyxW5xA 2WVfl5JEOuL0gu3fzvonSIf8RMhP65Opkx8OXoqnPVGuverj/7Dy+L01Ay2wP8tnyiF9 JiTezjJG9sPE77I7oWEZ/tNHlc+A9MWjJBYbVuNFinJnELdJDT0g5R/6d1S8QJ5akHyr RGIeF89GVl3p4zkE98jUQfpjqABuMmgiDBtSgpeiUyXIb1KXxJCONh+inwpCHhACwhcE 5Hro3yl/ZWRwEcU6Tadq7lzwBApI6cfYq8dx4K6Fu19DccAo0/o3ONOXirGeeL1iKXh6 6wgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LXkkPSS2; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (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 u22si3698864pgb.549.2017.12.14.17.42.59; Thu, 14 Dec 2017 17:42:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LXkkPSS2; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754594AbdLOBm6 (ORCPT + 4 others); Thu, 14 Dec 2017 20:42:58 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38583 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754538AbdLOBm6 (ORCPT ); Thu, 14 Dec 2017 20:42:58 -0500 Received: by mail-pg0-f66.google.com with SMTP id f12so4714913pgo.5 for ; Thu, 14 Dec 2017 17:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:subject:from:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=CzuBINciYHxYc9+L9f6ShKqlWmA6ln3eaC4a5wnLekQ=; b=LXkkPSS25JUOeyawMEhVv9D97cxS+c77YKmXCUAtNSFL3Jx397g896ml15SRjR/cE7 xV2KcyTtRygXGwowl2HmAkW/5Kr+ryFvxhkoGq+Ewcuhi6uCwedm5tlpZzZ6d7e9SGZM dIRybSCCwT78Iabi7M9US8EsW/a4IUhmuhSpE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=CzuBINciYHxYc9+L9f6ShKqlWmA6ln3eaC4a5wnLekQ=; b=UXXxLTBUWCcfO3D3L90ngnRfjlVQpCa0Yn8nmgoEjt8CAHwp+nwjFYqosBCdti9Xjb n9xxRNSjE+lOYAw6C2vvx9Ji67o2+sX8wYCluEbjKJv5AryHp4R0l8rGWvOd9xbpH6Jn 66w6BfdaS2muqh/botHuXkOacaHyAtoENyEm/mXi0lRSTR8LqNE+O1IxJsBm886z09f6 ih6ckpJs3BICWB+TP1lQ9+9+GI7Kk9QRQyuF0d7sLIvFDYfeiPH59j467/XbUjSeAojq QqingOz4Re6a/br6tvbkMtRozipJrKKItpWvGUUDDSMMjdBqfWUYi58OBhubpAGP8r5D DYgA== X-Gm-Message-State: AKGB3mI1VxCaE3Ormz3/5geg9uPqKVdGxFZ0OJu2KFxbKQdaG8zI7DqY JUKIWZit2mShVHeOsDwBqvtSSLeisAc= X-Received: by 10.99.127.84 with SMTP id p20mr10484643pgn.204.1513302177342; Thu, 14 Dec 2017 17:42:57 -0800 (PST) Received: from [192.168.1.225] (98.142.132.60.16clouds.com. [98.142.132.60]) by smtp.gmail.com with ESMTPSA id r86sm11982952pfk.114.2017.12.14.17.42.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 17:42:56 -0800 (PST) To: Sebastian Andrzej Siewior Subject: a fixing patch for 4.15 sched change of cpu_ptr From: Alex Shi Cc: linux-rt-users Message-ID: <17bc8f42-3047-52eb-a38c-815fefc733ac@linaro.org> Date: Fri, 15 Dec 2017 09:42:49 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org Hi Sebastain, After rebase rt to 4.15, The following patch still need be fold into: kernel: sched: Provide a pointer to the valid CPU mask Regards Alex >From b61af268d8b731b7ffeffd2d588c4e8dcae18d44 Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Tue, 12 Dec 2017 17:59:11 +0800 Subject: [PATCH] sched: replace new cpus_allowed member usage with cpus_ptr 4.15 commit 6fee85c sched/fair: Fix usage of find_idlest_group() when no groups are allowed reused cpus_allowed again. need to fix this to follow cpu_allowed to cpu_ptr change on rt. Signed-off-by: Alex Shi --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 3136c11..2c5ab64 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5965,7 +5965,7 @@ static inline int find_idlest_cpu(struct sched_domain *sd, struct task_struct *p { int new_cpu = cpu; - if (!cpumask_intersects(sched_domain_span(sd), &p->cpus_allowed)) + if (!cpumask_intersects(sched_domain_span(sd), p->cpus_ptr)) return prev_cpu; while (sd) {