Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5425970ybf; Thu, 5 Mar 2020 00:25:31 -0800 (PST) X-Google-Smtp-Source: ADFU+vsT9NC9wNpu6/xNtVnZO8LprZix3mSM962865ikevEOKTkIAHa0NzOYB8RyAPrHcUFs7uug X-Received: by 2002:aca:31d8:: with SMTP id x207mr175043oix.120.1583396731665; Thu, 05 Mar 2020 00:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583396731; cv=none; d=google.com; s=arc-20160816; b=IH1Qf5EB0e04lg67EP8hXvPFPaZ1jx6s3kkWWOCt62ROfN+OqyPYs6uQc1aWW2sYhG ZFcXFSPky0N+3hOSeewdq4X7TovRw20HSRwBnB9MX6KulszGGMlqzDZDB+jEuD0urCid 9hPuKpfiZxQ/2kGLYHoghpIEmi7O5L9XMvDZ1A/NKOO93DxIYdZdPTHb+C0WaXbHmA3X LK7tkW+Udz1ScvTQEpeavJN/2jDMwJBnBNi5n69rFbUEOCf3B4CzwXCFzI0CdM3CjpEz xOq05b99Wmc4z0PUhmAhlgkZdxLNGdJJmN6CcdP2/IqBGk1evth9sYWpTdXLubVYg/GQ QC/w== 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; bh=I2mveCImljHqxHek/wFm6kUkJzlln2YDiAlHTmx7owA=; b=axn3GO219X+3s77SNKBtpwBxiuFFQ2wB4zSXCe1AH8qJWEuWd8MeZNcCLdrGyj4bAP NwUDHe2jzTj7xOFA9UJtzFQ+eQ7QU7OOt5vViT2BEgF+xKHBF3jAb6m1c8qf8Q6vadpN G7DAGYLG9au4JRK8hJaPscYt5yL/D7iIoFHMoJkzzfhNOdO8It7sBBh/u3POdFG+oTLE FwyjIZyGq1nRs1yNzAfiLeIiszsZEVYZfVgyyomcfiniXu/vEnujKbCehltD5YYIhRmw OBnDuCHCxWLZdFCNqJ5GJbq5k6ZYASlvXWa7/Xx5z6rSSdEIYeKrRlk2wj//lKSBVbnq +Fxg== 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 i19si3004785oie.131.2020.03.05.00.25.20; Thu, 05 Mar 2020 00:25:31 -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; 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 S1725974AbgCEIYE (ORCPT + 99 others); Thu, 5 Mar 2020 03:24:04 -0500 Received: from lucky1.263xmail.com ([211.157.147.130]:41560 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbgCEIYD (ORCPT ); Thu, 5 Mar 2020 03:24:03 -0500 X-Greylist: delayed 452 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Mar 2020 03:24:02 EST Received: from localhost (unknown [192.168.167.209]) by lucky1.263xmail.com (Postfix) with ESMTP id 045DC8B0D3; Thu, 5 Mar 2020 16:16:27 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P32633T140274034538240S1583396184137610_; Thu, 05 Mar 2020 16:16:26 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: cl@rock-chips.com X-SENDER: cl@rock-chips.com X-LOGIN-NAME: cl@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: To: heiko@sntech.de Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, akpm@linux-foundation.org, tglx@linutronix.de, mpe@ellerman.id.au, surenb@google.com, ben.dooks@codethink.co.uk, anshuman.khandual@arm.com, catalin.marinas@arm.com, will@kernel.org, keescook@chromium.org, luto@amacapital.net, wad@chromium.org, mark.rutland@arm.com, geert+renesas@glider.be, george_davis@mentor.com, sudeep.holla@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, info@metux.net, kstewart@linuxfoundation.org, allison@lohutok.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, huangtao@rock-chips.com, Liang Chen Subject: [PATCH v1 0/1] wait_task_inactive() spend too much time on system startup Date: Thu, 5 Mar 2020 16:16:10 +0800 Message-Id: <20200305081611.29323-1-cl@rock-chips.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liang Chen Changelog: v1: wait_task_inactive() frequently call schedule_hrtimeout() and spend a lot of time, i am trying to optimize it on rockchip platform. Liang Chen (1): sched/fair: do not preempt current task if it is going to call schedule() arch/arm/include/asm/thread_info.h | 1 + arch/arm64/include/asm/thread_info.h | 1 + include/linux/sched.h | 15 +++++++++++++++ kernel/kthread.c | 4 ++++ kernel/sched/fair.c | 4 ++++ 5 files changed, 25 insertions(+) -- 2.17.1