Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6527241ybf; Thu, 5 Mar 2020 23:03:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vscQ0uS6feC2NuBxLV35iHsKFDSmetQhXE1mbJe1AP4GLPVxeicD3+MLZ913+qfyBq/FdTh X-Received: by 2002:a9d:d27:: with SMTP id 36mr1445147oti.230.1583478200498; Thu, 05 Mar 2020 23:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583478200; cv=none; d=google.com; s=arc-20160816; b=AeIZN0lqCkF1miWrOtZdRb44R/o2a79UrvhW+hGddu2XNmry/iDzJIF9UlJzwa3xgU 2W/UVa9DeSfH1q7a+yRDB6RRueHUrlj49K+O4pWvsBeiVyuE40j0CHApz+pfiXpzAUHw Gu31afehqGZgBJ5le4Y6Ax0t6R6Hv+42b4NrkiDrY8AYxFHYGV0r6jKGrMBSELXKQ5kZ 9+w3hJfzrgoABqfjx+si6FWrG9z2uM80fvBnE1sMXi25YqKopk1OFwNhocKhwMLwM2aR 2kucuzT6LhuvJYG6hUVCKnHzcbK2xWKI97YON7yLavrZNfG65xDfRVdjE/gxu9xqUVEM T8iw== 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=6sv5tA67pREL+VDPJ8mXqAVxtENJkCWgKF7KsdPrqFE=; b=JYUQtVpZ9D2VRzX6j0WLTKveD0+8304MkYZm9QOk1T5mu+NV60mBb8SOjtFQvr49tc d2k6DLh3jkrtGzBich8r1oU58F6paqWIsrhby47tM5o91qRgbPhM2CQUK+/1qGFsWuot b4mU3jSDU50Us6pQ8pZVlEtYb1o4QHKmGSN9i8n3Oyv3zL92MsE7em3XVZswSYJLvH7n /wmWRbCaqW2RwtacFQBlne2PDdsxAFcGxKvz/q9MHl+kFku0FJDVXpT12LPRt4RGVek1 Rk0tpzmIQtmXPVwDUeZP5IxAwz1+GXnq3xKG1Lc+J1Lv5wWIceNaFHV9fhBZwOS44Tjd 2WVg== 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 m11si905553otf.146.2020.03.05.23.03.09; Thu, 05 Mar 2020 23:03:20 -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 S1726091AbgCFHBr (ORCPT + 99 others); Fri, 6 Mar 2020 02:01:47 -0500 Received: from lucky1.263xmail.com ([211.157.147.134]:45516 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbgCFHBr (ORCPT ); Fri, 6 Mar 2020 02:01:47 -0500 Received: from localhost (unknown [192.168.167.209]) by lucky1.263xmail.com (Postfix) with ESMTP id BF7D96E8A5; Fri, 6 Mar 2020 15:01:40 +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 P32633T140274261014272S1583478094758456_; Fri, 06 Mar 2020 15:01:37 +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 v3 0/1] wait_task_inactive() spend too much time on system startup Date: Fri, 6 Mar 2020 15:01:32 +0800 Message-Id: <20200306070133.18335-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. v3: Use a new method fix this issue to make the code simple. Liang Chen (1): kthread: do not preempt current task if it is going to call schedule() kernel/kthread.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) -- 2.17.1