From patchwork Mon Jan 4 15:20:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 356784 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE718C433DB for ; Mon, 4 Jan 2021 15:22:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B6642221E5 for ; Mon, 4 Jan 2021 15:22:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbhADPVq (ORCPT ); Mon, 4 Jan 2021 10:21:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:54860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbhADPVp (ORCPT ); Mon, 4 Jan 2021 10:21:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81D77207BC; Mon, 4 Jan 2021 15:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609773665; bh=OEqL0DS9evxcnmHPYt2YEDY1jQaDKpzSo3PJ4f2d5vw=; h=From:To:Cc:Subject:Date:From; b=reIzWMa9qzBVfDC4mGfsBvr1MH/82px3lVg+iPTxQM/76UI7lcU+XePzmrNkSm/zg vOBHCBPU0O87aaH/3qPW3mJPzsmhEPbQBoMZGxXA5P+UQZLOKso/N5Q7esXaTj8tv4 WRabapy0plFtG8ieMxAPPeNFujZTItPJHw5IeeBLtx+pWYxuYw6F6WpyjcTpIp60Ar /jp6PRu/iFCOhni8Vbze5m2gRSDud2unvl+2WYJGLkjCeMKuUUmUOvhNA1RVSCOc/Q 8IZIEUoNVBgO8fPTVDwk0x3x5fwqm9gKeXPCR4H/MfFZ5IjnxZyVvorQROYXcWFKVx BBYXigNyiti4Q== From: Frederic Weisbecker To: Peter Zijlstra Cc: LKML , Frederic Weisbecker , "Rafael J . Wysocki" , Ingo Molnar , Fabio Estevam , stable@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Len Brown , Pengutronix Kernel Team , NXP Linux Team , Daniel Lezcano , Shawn Guo , Sascha Hauer Subject: [PATCH 0/4] sched/idle: Fix missing need_resched() checks after rcu_idle_enter() v2 Date: Mon, 4 Jan 2021 16:20:54 +0100 Message-Id: <20210104152058.36642-1-frederic@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The only code change in this v2 is the use of tif_need_resched() instead of need_resched() on 3/4 (build issue reported on linux-next). The rest is added Tested-by and Reviewed-by tags. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git sched/idle-v2 HEAD: c246718af0112c8624ec9c46a85bf0ef1562e050 Thanks, Frederic --- Frederic Weisbecker (4): sched/idle: Fix missing need_resched() check after rcu_idle_enter() cpuidle: Fix missing need_resched() check after rcu_idle_enter() ARM: imx6q: Fix missing need_resched() check after rcu_idle_enter() ACPI: processor: Fix missing need_resched() check after rcu_idle_enter() arch/arm/mach-imx/cpuidle-imx6q.c | 8 +++++++- drivers/acpi/processor_idle.c | 10 ++++++++-- drivers/cpuidle/cpuidle.c | 33 +++++++++++++++++++++++++-------- kernel/sched/idle.c | 18 ++++++++++++------ 4 files changed, 52 insertions(+), 17 deletions(-)