From: Nam Cao <namcao@linutronix.de>
To: Anna-Maria Behnsen <anna-maria@linutronix.de>,
Frederic Weisbecker <frederic@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Andreas Hindborg <a.hindborg@kernel.org>,
Alice Ryhl <aliceryhl@google.com>,
Miguel Ojeda <ojeda@kernel.org>, Kees Cook <kees@kernel.org>,
linux-kernel@vger.kernel.org
Cc: Nam Cao <namcao@linutronix.de>,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: [PATCH 38/44] drm/xe/oa: Switch to use hrtimer_setup()
Date: Mon, 28 Oct 2024 08:35:14 +0100 [thread overview]
Message-ID: <e488e80d08016ec8f9dc7de2cd6cd81e22b60f96.1729865485.git.namcao@linutronix.de> (raw)
In-Reply-To: <cover.1729865485.git.namcao@linutronix.de>
There is a newly introduced hrtimer_setup() which will replace
hrtimer_init(). This new function is similar to the old one, except that it
also sanity-checks and initializes the timer's callback function.
Switch to use this new function.
Patch was created by using Coccinelle.
Signed-off-by: Nam Cao <namcao@linutronix.de>
---
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
---
drivers/gpu/drm/xe/xe_oa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index eae38a49ee8e..600eaaee8a72 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -1437,8 +1437,8 @@ static int xe_oa_stream_init(struct xe_oa_stream *stream,
WRITE_ONCE(u->exclusive_stream, stream);
- hrtimer_init(&stream->poll_check_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
- stream->poll_check_timer.function = xe_oa_poll_check_timer_cb;
+ hrtimer_setup(&stream->poll_check_timer, xe_oa_poll_check_timer_cb, CLOCK_MONOTONIC,
+ HRTIMER_MODE_REL);
init_waitqueue_head(&stream->poll_wq);
spin_lock_init(&stream->oa_buffer.ptr_lock);
--
2.39.5
next prev parent reply other threads:[~2024-10-28 7:35 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-28 7:34 [PATCH 00/44] hrtimers: Switch to new hrtimer interface functions (4/5) Nam Cao
2024-10-28 7:34 ` [PATCH 01/44] USB: chipidea: Switch to use hrtimer_setup() Nam Cao
2024-10-28 7:34 ` [PATCH 02/44] usb: dwc2: " Nam Cao
2024-10-28 7:34 ` [PATCH 03/44] usb: fotg210-hcd: " Nam Cao
2024-10-28 7:34 ` [PATCH 04/44] usb: gadget: " Nam Cao
2024-10-28 7:34 ` [PATCH 05/44] usb: ehci: " Nam Cao
2024-10-28 7:34 ` [PATCH 06/44] usb: musb: cppi41: " Nam Cao
2024-10-28 7:34 ` [PATCH 07/44] usb: typec: tcpm: " Nam Cao
2024-10-28 7:34 ` [PATCH 08/44] serial: 8250: " Nam Cao
2024-10-28 7:34 ` [PATCH 09/44] serial: imx: " Nam Cao
2024-10-28 7:34 ` [PATCH 10/44] serial: sh-sci: " Nam Cao
2024-10-28 7:34 ` [PATCH 11/44] serial: xilinx_uartps: " Nam Cao
2024-10-28 7:34 ` [PATCH 12/44] scsi: " Nam Cao
2024-10-28 7:34 ` [PATCH 13/44] rtc: class: " Nam Cao
2024-10-28 7:34 ` [PATCH 14/44] pps: generators: pps_gen_parport: " Nam Cao
2024-10-28 7:34 ` [PATCH 15/44] powercap: " Nam Cao
2024-10-28 11:44 ` Rafael J. Wysocki
2024-10-28 7:34 ` [PATCH 16/44] power: supply: ab8500_chargalg: " Nam Cao
2024-10-28 12:48 ` Linus Walleij
2024-10-28 7:34 ` [PATCH 17/44] power: reset: ltc2952-poweroff: " Nam Cao
2024-10-28 7:34 ` [PATCH 18/44] drivers: perf: " Nam Cao
2024-10-28 7:34 ` [PATCH 19/44] ntb: ntb_pingpong: " Nam Cao
2024-10-28 7:34 ` [PATCH 20/44] mmc: dw_mmc: " Nam Cao
2024-10-28 7:34 ` [PATCH 21/44] misc: vcpu_stall_detector: " Nam Cao
2024-10-28 7:34 ` [PATCH 22/44] media: " Nam Cao
2024-10-28 8:00 ` Hans Verkuil
2024-10-28 7:34 ` [PATCH 23/44] mailbox: " Nam Cao
2024-10-28 7:35 ` [PATCH 24/44] leds: trigger: pattern: " Nam Cao
2024-10-28 7:35 ` [PATCH 25/44] Input: " Nam Cao
2024-10-28 7:35 ` [PATCH 26/44] iio: " Nam Cao
2024-11-02 16:00 ` Jonathan Cameron
2024-10-28 7:35 ` [PATCH 27/44] i2c: " Nam Cao
2024-10-28 7:35 ` [PATCH 28/44] stm class: heartbeat: " Nam Cao
2024-10-28 7:35 ` [PATCH 29/44] drm/amdgpu: " Nam Cao
2024-10-28 7:35 ` [PATCH 30/44] drm/i915/huc: " Nam Cao
2024-10-28 7:35 ` [PATCH 31/44] drm/i915/gvt: " Nam Cao
2024-10-28 7:35 ` [PATCH 32/44] drm/i915/perf: " Nam Cao
2024-10-28 7:35 ` [PATCH 33/44] drm/i915/pmu: " Nam Cao
2024-10-28 7:35 ` [PATCH 34/44] drm/i915/uncore: " Nam Cao
2024-10-28 7:35 ` [PATCH 35/44] drm/i915/request: " Nam Cao
2024-10-28 7:35 ` [PATCH 36/44] drm/msm: " Nam Cao
2024-10-28 7:35 ` [PATCH 37/44] drm/vkms: " Nam Cao
2024-10-28 7:35 ` Nam Cao [this message]
2024-10-31 13:12 ` [PATCH 38/44] drm/xe/oa: " Lucas De Marchi
2024-10-28 7:35 ` [PATCH 39/44] drm/vmwgfx: " Nam Cao
2024-10-28 7:35 ` [PATCH 40/44] virtio: mem: " Nam Cao
2024-10-28 7:35 ` [PATCH 41/44] RDMA: " Nam Cao
2024-10-28 7:35 ` [PATCH 42/44] pwm: gpio: " Nam Cao
2024-10-28 7:35 ` [PATCH 43/44] ASoC: fsl: imx-pcm-fiq: " Nam Cao
2024-10-28 7:35 ` [PATCH 44/44] ALSA: " Nam Cao
2024-10-28 8:58 ` [PATCH 00/44] hrtimers: Switch to new hrtimer interface functions (4/5) Alexander Shishkin
2024-10-28 11:06 ` Thomas Gleixner
2024-10-31 12:21 ` Jani Nikula
2024-10-31 15:59 ` Zack Rusin
2024-10-31 21:42 ` Deucher, Alexander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e488e80d08016ec8f9dc7de2cd6cd81e22b60f96.1729865485.git.namcao@linutronix.de \
--to=namcao@linutronix.de \
--cc=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=anna-maria@linutronix.de \
--cc=frederic@kernel.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucas.demarchi@intel.com \
--cc=ojeda@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®