Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3499552imm; Sun, 17 Jun 2018 22:00:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK+msdG7cyEWkzmjpJwD3DWDQBs90NJw17yzG8JJVti9zR5JYPzCxp0ux1mKeOjB0pBVNMb X-Received: by 2002:a17:902:c3:: with SMTP id a61-v6mr12497599pla.149.1529298054002; Sun, 17 Jun 2018 22:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529298053; cv=none; d=google.com; s=arc-20160816; b=poN2v6NESDnJdHTYUSp/pvNhfDDw0gd6zZBYWMpAM+yunCT0XkJO9FgY82SRB2yA6m nNSIn9rhyJwV0eaZP8he1bv0Bscxo6jM64hjxrCRK0D0/Rp0ntJkI54miDjmhFmoYytc Cq1l3iRXXBXPxeUqHSO4475slp7j3KOHDgV2rSgq68nhtr2qENIMxQcW++qOCU8yZXvp lQyfVD+ijHsuXVtD7Z5csbV6MIAlxHoh4enioF1TCYdNgWYOdkfkvyj9epmVRFIWLQC7 DyrB+nNu4V3hjdMG3H+bzmflLI02qnKe8sMllh9O2oxbY18wuZ4h3Jh7IjV32dOeB/ZG ksFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1F3O9QARuIepoOHXFzAet9favyyGp0E39EST+ntqLuM=; b=W5RvUlrDAS6H10x0cqDMtsVJqzVB4/SUWq3goxBrefK3BRiqglUsZ0IAS1n4fMx00A qNXSydJCuzhw0UOd9qjbBkhG3tNxN16XJNsSyLqDlYgq2eeCU3V7VOuvSwh8SvkvKcKY /1c75OZ/pLC4lnDmiDKvPaF0o9BuyQ2V90o/PG2W+N6IyAgZSPehQBmFWTrkM1Q+ucB3 idfDeaKc499oNQl/kfYosjxydMadlPckJMuDvrW3xhy9f3QCzliExw/ugoa/Na4FQIR3 pufCnga6j0vv7UBmTLv7h4ZDVAmIh75AhhuooeglS9Sa3B8NP/2dXjIxy3yCp8Bti3rP +Elw== 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 f5-v6si11542386pgu.103.2018.06.17.22.00.40; Sun, 17 Jun 2018 22:00:53 -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 S1754721AbeFRE6Q (ORCPT + 99 others); Mon, 18 Jun 2018 00:58:16 -0400 Received: from lgeamrelo12.lge.com ([156.147.23.52]:54748 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754283AbeFRE6O (ORCPT ); Mon, 18 Jun 2018 00:58:14 -0400 Received: from unknown (HELO lgeamrelo01.lge.com) (156.147.1.125) by 156.147.23.52 with ESMTP; 18 Jun 2018 13:58:12 +0900 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.222.33) by 156.147.1.125 with ESMTP; 18 Jun 2018 13:58:12 +0900 X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: peterz@infradead.org, mingo@kernel.org, rostedt@goodmis.org Cc: tglx@linutronix.de, raistlin@linux.it, linux-kernel@vger.kernel.org, juri.lelli@gmail.com, bristot@redhat.com, kernel-team@lge.com, joel@joelfernandes.org Subject: [RESEND PATCH v12 0/2] Make find_later_rq() choose a closer cpu in topology Date: Mon, 18 Jun 2018 13:58:07 +0900 Message-Id: <1529297889-24551-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change from v11 -. Rebase onto the latest tip/sched/core -. make the word 'cpu' in comments be upper case as Ingo did in the commit 97fb7a0a89 -. Avoid a compile warning caused by mismatching bwt const and non-const 'struct sched_domain' in find_cpu() Change from v10 -. modify a comment a bit as Steven suggested Change from v9 -. modify a comment a bit so to be more clear as Juri suggested Change from v8 -. add suggested-by Peterz -. add several comments Change from v7 -. fix a trivial typo -. modify commit messages to explain what it does more clearly -. simplify code with an existing macro Change from v6 -. add a comment about selection of fallback_cpu incase more than one exist -. modify a comment explaining what we do wrt PREFER_SIBLING Change from v5 -. exclude two patches already picked up by peterz (sched/deadline: Make find_later_rq() choose a closer cpu in topology) (sched/deadline: Change return value of cpudl_find()) -. apply what peterz fixed for 'prefer sibling', into deadline and rt Change from v4 -. remove a patch that might cause huge lock contention (by spin lock(&cpudl.lock) in a hot path of scheduler) Change from v3 -. rename closest_cpu to best_cpu so that it align with rt -. protect referring cpudl.elements with cpudl.lock -. change return value of cpudl_find() to bool Change from v2 -. add support for SD_PREFER_SIBLING Change from v1 -. clean up the patch Byungchul Park (2): sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq() sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq() kernel/sched/deadline.c | 80 ++++++++++++++++++++++++++++++++++++++++++++----- kernel/sched/rt.c | 78 +++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 148 insertions(+), 10 deletions(-) -- 1.9.1