Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1407219pxb; Fri, 24 Sep 2021 03:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCTnqSv8aOtYCKmw9tBAVce56Eu6v6BsWmsU/rnlQDqH0mOAIVEjxXwVdZ7MrKkxWbZMkx X-Received: by 2002:a92:d483:: with SMTP id p3mr7989380ilg.131.1632481106960; Fri, 24 Sep 2021 03:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632481106; cv=none; d=google.com; s=arc-20160816; b=dW3ofDaPBHYmLLniEZvwonY4ies6wpZAPSGez7HOIzkKTz/hn3RrsyQQYapnTC5OhL 29K3ZtLFPZm5TLePSgKNHjjX8Y1Dfm7NOq8z9GBoVwEH35b6QFHqGFs+wq2FBsxgpCGa pzhhInpTqplDs2klmiYhXB/A8MMDfVSv4ZQuc7I+6UCaAiFSF8JqZEkP75AHrN45VzPF OipRxoUO8l0+Ho1REDhhPjpzFIKNIsJx+Uroblw5CFR+hWEZ5MjtJndECpn6nUjPpF1C Z4O/kqt5XTYBcLOD0aL7A36R51c0PP8lq3AzsxZDxSTsUnF8Vm4LHLpKmNa5mOlOtQ6F +sLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=H3xzwfyS2EchL68guh8XGqqr3u2Ch5yWArav1vsCqaQ=; b=iRwGNGl8NBOLK4qUZSuF0gMcM/Fm0j6ZjhIWghRcfkSDR19lYrFlZtcylK3atct6C3 +6vM7lCxpJp4jflGie4vlPr+RxgeO9/wXPyWqVRxR4GAsZiUgo0MwQJfn+gVy+oH389O Fc1LtlrGR/gLDAqdqR5wDDw0ra/3WGNMIFdc4x+FSuEeRchGDVsYJvnvM/Pql/SsbaOn FxJWnb8KxR82V4+zhsnvqyHx2UOYdJyHkWdOMgHRAXPXYUQe+AaLHBM1n1qnDMc+Nefk 4YFwjXTm/PZfE9O4QE9pmJShvR3NUPMctx/DBt6lOpK/WddStdHz1OglH5NbXj1y49lO ZhkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si12677555jat.117.2021.09.24.03.58.13; Fri, 24 Sep 2021 03:58:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245073AbhIXJFc (ORCPT + 99 others); Fri, 24 Sep 2021 05:05:32 -0400 Received: from mga18.intel.com ([134.134.136.126]:18064 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245055AbhIXJFb (ORCPT ); Fri, 24 Sep 2021 05:05:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10116"; a="211109815" X-IronPort-AV: E=Sophos;i="5.85,319,1624345200"; d="scan'208";a="211109815" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 02:03:57 -0700 X-IronPort-AV: E=Sophos;i="5.85,319,1624345200"; d="scan'208";a="551509027" Received: from sambroox-mobl.ger.corp.intel.com (HELO [10.213.245.2]) ([10.213.245.2]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 02:03:54 -0700 Subject: Re: [Intel-gfx] [patch 07/11] drm/i915/pmu: Use hrtimer_forward_now() To: Thomas Gleixner , 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> <20210923153339.808080761@linutronix.de> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc Message-ID: Date: Fri, 24 Sep 2021 10:03:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210923153339.808080761@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/09/2021 17:04, Thomas Gleixner wrote: > 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 > --- > 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; > } > Reviewed-by: Tvrtko Ursulin Regards, Tvrtko