From patchwork Fri May 1 13:23:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 226595 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 5DDB7C47254 for ; Fri, 1 May 2020 13:47:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3EBBE2051A for ; Fri, 1 May 2020 13:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340824; bh=xsIm47QT/PkC5BM6zlFzzxen0zJsZueoPhnmIWEltf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Hv/22dSjgWbH9zpFIDms3ub+6Reot15fGDUbspzuAw3uP1Lk3s9AHQ3xWzAEjeJHs gbbWj730sLNEMGc/i7wyZ0jtbxtz6GlJT4EbDitFmgF7H9V6Wge9uXKTa8l6FZmALs +KKtTzgkfTkbRqlz1s5asVsOrgaGxm+1c9uRdXAM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731289AbgEANrD (ORCPT ); Fri, 1 May 2020 09:47:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:45142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731459AbgEANoF (ORCPT ); Fri, 1 May 2020 09:44:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 44A52205C9; Fri, 1 May 2020 13:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340644; bh=xsIm47QT/PkC5BM6zlFzzxen0zJsZueoPhnmIWEltf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=haYmC3XHlXIqaiNedzG/xeZ2OeHi+VcNbeoBXC+FTReaa66Bd1L9KezMfq/JVlYGY g8lbWPwmOKkS81VMYwz0Gx7wBWYrCPK4QrgFrm6a/0jONXJRkwhqv8wQ7I+NHQ7AnP t0NRBLhtMPKqT2UKWfWXLiNXLvQLKRJ7Q2KEFQFk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , "Rafael J. Wysocki" Subject: [PATCH 5.6 056/106] PM: sleep: core: Switch back to async_schedule_dev() Date: Fri, 1 May 2020 15:23:29 +0200 Message-Id: <20200501131550.354821764@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200501131543.421333643@linuxfoundation.org> References: <20200501131543.421333643@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Kai-Heng Feng commit 09beebd8f93b3c8bf894e342f0a203a5c612478c upstream. Commit 8b9ec6b73277 ("PM core: Use new async_schedule_dev command") introduced a new function for better performance. However commit f2a424f6c613 ("PM / core: Introduce dpm_async_fn() helper") went back to the non-optimized version, async_schedule(). So switch back to the sync_schedule_dev() to improve performance Fixes: f2a424f6c613 ("PM / core: Introduce dpm_async_fn() helper") Signed-off-by: Kai-Heng Feng Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/base/power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -726,7 +726,7 @@ static bool dpm_async_fn(struct device * if (is_async(dev)) { get_device(dev); - async_schedule(func, dev); + async_schedule_dev(func, dev); return true; }