From patchwork Thu Sep 23 16:04:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 12513213 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=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 BF4BEC433F5 for ; Thu, 23 Sep 2021 16:10:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84CA261050 for ; Thu, 23 Sep 2021 16:10:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 84CA261050 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 961656ED8E; Thu, 23 Sep 2021 16:10:25 +0000 (UTC) X-Greylist: delayed 361 seconds by postgrey-1.36 at gabe; Thu, 23 Sep 2021 16:10:24 UTC Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 70F546ED91; Thu, 23 Sep 2021 16:10:24 +0000 (UTC) Message-ID: <20210923153339.808080761@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632413071; 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=AUasnRadxctw2sB5UrBju7dW3LJOwPsCj4pLP6/jnbE=; b=GiGpkkpyuxUHUsK3t4jX5+svnLLUcPeRcfJElJVpTOVFZvwjhYsOn9LeVwFFyIiYQtUijQ FWqnBjyfobezE+Gz6YQFv3Z1yNDUX00ef7kIKE17GIsSoEGEW6oBWw3Cd/WbSlFKfQcO2k /PGpF4h2me5alkLmoTU4qffDK+flKORkQMYaqFWXSnnsaHAiAtdv9w5hC+4ErLzB35mpn+ AtTyZLUp8bPv5CWccaeZG9zYYgonc58w10wyrKpd3HExr/9CFAunNncXUv0z+eEso+GWWv L2JTLvj6HhKUIFiawEiTn8Ik0f7tWMwNI93JEzyH/Qa95JMYQ2uG8uakW+8gzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632413071; 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=AUasnRadxctw2sB5UrBju7dW3LJOwPsCj4pLP6/jnbE=; b=HuivklyujFCi3vNFmJv/0xTD3In63M+RxbhmgKfRTaqrZkLudpz2XMLWK5lIDkxbKF9tN1 z5QFv7P3szOOpJDw== From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , David Airlie , intel-gfx@lists.freedesktop.org, Joonas Lahtinen , Jani Nikula , dri-devel@lists.freedesktop.org, Daniel Vetter , Rodrigo Vivi References: <20210923153311.225307347@linutronix.de> MIME-Version: 1.0 Date: Thu, 23 Sep 2021 18:04:30 +0200 (CEST) Subject: [Intel-gfx] [patch 07/11] drm/i915/pmu: Use hrtimer_forward_now() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" hrtimer_forward() is about to be removed from the public interfaces. Replace it with hrtimer_forward_now() which provides the same functionality. Signed-off-by: Thomas Gleixner Cc: David Airlie Cc: intel-gfx@lists.freedesktop.org Cc: Joonas Lahtinen Cc: Jani Nikula Cc: dri-devel@lists.freedesktop.org Cc: Daniel Vetter Cc: Rodrigo Vivi Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/i915_pmu.c +++ b/drivers/gpu/drm/i915/i915_pmu.c @@ -439,7 +439,7 @@ static enum hrtimer_restart i915_sample( engines_sample(gt, period_ns); frequency_sample(gt, period_ns); - hrtimer_forward(hrtimer, now, ns_to_ktime(PERIOD)); + hrtimer_forward_now(hrtimer, ns_to_ktime(PERIOD)); return HRTIMER_RESTART; }