Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5512324ybf; Thu, 5 Mar 2020 02:01:56 -0800 (PST) X-Google-Smtp-Source: ADFU+vu5J4pjJ9h8bdFulyX3/EPwP0oYJDTollEBc9XcPCw/tpjRtEYVbXVmI3H4C7jjtrJYOCnO X-Received: by 2002:a05:6830:1c25:: with SMTP id f5mr3956851ote.253.1583402516589; Thu, 05 Mar 2020 02:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583402516; cv=none; d=google.com; s=arc-20160816; b=gcLHQoo5j6o6nK2PJwHAp3bsqwEt36s3NyiRdAutfugl1S0mUBB9DzDNYCxhw9FFa6 0MRxWX544wAuiLFmmUv1lZkmnO0zS+3nIs9dy+xHaZuzDLXKfGS5ipm/zPW9tbMsuzJg cpxJRoQt8c4s8J7LOU3TgPAm9Tulr87U1dm65HgJdOi+u/bGB5TvTZ0zmcCYBgcdGMXI r2E0dGPJ6v/5mf/jIAiZPgagfCD/v2WnfcmzRGstenG64J4iMl/HuJp2V7XKgkwSLuqk osv7GHj/OTeQLSPUXxC1y72LoBKivrPhi9qHh7VyeweeYEQzVWd+67NSb1DueFYexOHv /ltA== 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=OxwaP2UlW6fWMdPjs9mHnSLnqqpIsmCORGcGoHd9MH4=; b=Pey6KPXiXXCcTvVInuuRkHGVuvUA5OO5iVCZasGuva8IESisGj4rackuxwIwMjdCln d3sd1YxcyjIokHYJxbHxOfdeBWQXy0f75Ewa+EwTzeL+JU2mZicza24TV2oazzMo5UEb seZcdBHy3k/be12D+yrzw1EV43jdyqScSBDGVklR0gtrcYodHaAG3+guKXfqKVQUSj3p 4/vhKOH5CqBw9KjDaIgA4vRlJ3VpE94y3CN/f5AaMt9EI5YMt5upkUysNpU5fpdcY7uU cN3LeD8lta3U+Xr06cq9TVSF5x9DIr8aNVb62P+zk6wZPBdKzZrVYE9wMJsyFapvzekC cXig== 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 q124si3220202oig.228.2020.03.05.02.01.45; Thu, 05 Mar 2020 02:01:56 -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 S1727392AbgCEJ75 (ORCPT + 99 others); Thu, 5 Mar 2020 04:59:57 -0500 Received: from lucky1.263xmail.com ([211.157.147.132]:48570 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbgCEJ75 (ORCPT ); Thu, 5 Mar 2020 04:59:57 -0500 Received: from localhost (unknown [192.168.167.8]) by lucky1.263xmail.com (Postfix) with ESMTP id 84B5FA920D; Thu, 5 Mar 2020 17:59:53 +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 P12225T140183483700992S1583402391050204_; Thu, 05 Mar 2020 17:59:53 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <5fa7a28b1227fe0fca77ae2005852e54> 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 v2 0/1] wait_task_inactive() spend too much time on system startup Date: Thu, 5 Mar 2020 17:59:47 +0800 Message-Id: <20200305095948.10873-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. v2: Use atomic_flags(PFA) instead of TIF flag, and add some comments. Liang Chen (1): sched/fair: do not preempt current task if it is going to call schedule() include/linux/sched.h | 5 +++++ kernel/kthread.c | 4 ++++ kernel/sched/fair.c | 13 +++++++++++++ 3 files changed, 22 insertions(+) -- 2.17.1