From patchwork Thu Sep 23 16:04:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 12513201 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 91B55C433FE for ; Thu, 23 Sep 2021 16:04:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7114960E9C for ; Thu, 23 Sep 2021 16:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242412AbhIWQGE (ORCPT ); Thu, 23 Sep 2021 12:06:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242405AbhIWQGC (ORCPT ); Thu, 23 Sep 2021 12:06:02 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F2CAC061756; Thu, 23 Sep 2021 09:04:30 -0700 (PDT) Message-ID: <20210923153339.746654947@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632413069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=w42oYem1Txk9Mic7XpqKf9n3jDnZdt7JZmS9PQDeSVk=; b=4bMSztB2DO8neREKH2XROIJCXPLT3gNNotwW5JUopESKMgDTLJp6iC3+VSCT3bMcpIsriy 5X7J24TqPxszoYHnMDaZwyJ2Sa3Ztt++9Yh9JDDfJ7OGPNR73/rgpjbzouWXrBcjLK1mzY Gzc37sJvv0AHfQLYfVzlOtRhucl1oraGcjsqx3cDXWNoKhf5f1Q+4FS3RuSA0+KEAuuIG+ L5Z8PnvM1gcZwvO7tdXWPemn7DOF/vbYP9Ejjj0obrbKP5+b/cg434GZAyncbs1IjiU/Xp iVqnAJ85XRlhUi92jhaZaI+oqKvVyJ+A+WHiHZnnO1c+MWYNysskjPWDepCclA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632413069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=w42oYem1Txk9Mic7XpqKf9n3jDnZdt7JZmS9PQDeSVk=; b=JurGoxIoInhfo7TQbGr1HNz0kXIjNRHncDkjkf7upb5tfyYutS2D3UjSZAj+mJMVloNdi9 MSJaohWnsFsky1Aw== From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Sebastian Reichel , linux-pm@vger.kernel.org Subject: [patch 06/11] power: reset: ltc2952: Use hrtimer_forward_now() References: <20210923153311.225307347@linutronix.de> MIME-Version: 1.0 Date: Thu, 23 Sep 2021 18:04:28 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org hrtimer_forward_now() provides the same functionality as the open coded hrtimer_forward() invocation. Prepares for removal of hrtimer_forward() from the public interfaces. Signed-off-by: Thomas Gleixner Cc: Sebastian Reichel Cc: linux-pm@vger.kernel.org --- drivers/power/reset/ltc2952-poweroff.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/power/reset/ltc2952-poweroff.c +++ b/drivers/power/reset/ltc2952-poweroff.c @@ -94,7 +94,6 @@ static struct ltc2952_poweroff *ltc2952_ */ static enum hrtimer_restart ltc2952_poweroff_timer_wde(struct hrtimer *timer) { - ktime_t now; int state; struct ltc2952_poweroff *data = to_ltc2952(timer, timer_wde); @@ -104,8 +103,7 @@ static enum hrtimer_restart ltc2952_powe state = gpiod_get_value(data->gpio_watchdog); gpiod_set_value(data->gpio_watchdog, !state); - now = hrtimer_cb_get_time(timer); - hrtimer_forward(timer, now, data->wde_interval); + hrtimer_forward_now(timer, data->wde_interval); return HRTIMER_RESTART; }