From nobody Mon Nov 25 12:47:47 2024 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED29020127A for ; Mon, 28 Oct 2024 07:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100951; cv=none; b=LzqBjmBX8Z/VwGqqOWxHI/M+znoB901fmt1RlhzB/OjvhdUWsV16RFpV4xtVnra0gQEQ9HNeiBOnKBtJZzv5BKKlGMGNrQU7XIYMKPn5fR8DRm2MqmJ5/fJT5sbjjCauVkUou3xnpdAic6dpFKbCcKK/06PVKsa8uRZptg87KkA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730100951; c=relaxed/simple; bh=vPGZvGlbPtskt2lK/AjYDSxjaGWBno2DNvg/vnO+qUs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h4LiS4bLqmVVqK41eQlJPdfQbpTG2WzkOyndJep6iC031eSrxqqwa0QUlif7YsdHIpWz9Rloh+TfNwxPEvpmhx9YLtw5lofSBXkPEZo2iTuh9hn6dshlsIsoYaK9glJpgK1gCbg3bLPSdbAzjOTbE6jzndID8MJL4CHp2bwvFew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MxDe5a4W; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9dKlZs5h; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MxDe5a4W"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9dKlZs5h" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730100947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VS1859LQxqyTAz1K0RecplOSM81fFsQLMRyLdDYxYys=; b=MxDe5a4WYlp83mDeR7avYEQosuTgknKXUT8q5leKuaD3VtFZIaoTYIS4T9ens9bVyVrj3g P7bk7Tbjm/I70dH6Le5e77CdmncuSuprbJkWFAsct6KWIjCAqa7vv+U38UkqGt7yojpX7r XlncpXre0yoDv2ioZea0Z+zbQhdnuZtSbFrcstvshUj6y09TNkTmzbCFQU984vGXwxO+nW hfpbJncdzJQGRUQhx1O7ccI+DibKID8MTJqfy7miBrPMDwRaVNCuxWy0Gw4tvQmHTlPd6B fcDBu37OTXUAHm8Zo5rIvRUTWkcIkYLDTIYWD43lko4UEs16OQBk40CSvrhLng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730100947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VS1859LQxqyTAz1K0RecplOSM81fFsQLMRyLdDYxYys=; b=9dKlZs5h6QT9drx29CAofTWFMeFfjpoGITnrWeaI1BP30pO0KM/lRHVDvR0/wQ64yx84ob 4Wfut1xs3wqcxXAA== To: Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner , Andreas Hindborg , Alice Ryhl , Miguel Ojeda , Kees Cook , linux-kernel@vger.kernel.org Cc: Nam Cao , Lucas De Marchi Subject: [PATCH 38/44] drm/xe/oa: Switch to use hrtimer_setup() Date: Mon, 28 Oct 2024 08:35:14 +0100 Message-Id: In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Acked-by: Lucas De Marchi --- Cc: Lucas De Marchi --- 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 *str= eam, =20 WRITE_ONCE(u->exclusive_stream, stream); =20 - hrtimer_init(&stream->poll_check_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL= ); - stream->poll_check_timer.function =3D 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); =20 spin_lock_init(&stream->oa_buffer.ptr_lock); --=20 2.39.5