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: Jani Nikula <jani.nikula@linux.intel.com>,
intel-gfx@lists.freedesktop.org,
Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>,
x86@kernel.org, Jakub Kicinski <kuba@kernel.org>,
Kalle Valo <kvalo@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christian Brauner <brauner@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
John Stultz <jstultz@google.com>,
Oliver Hartkopp <socketcan@hartkopp.net>,
kvm@vger.kernel.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2 00/19] hrtimers: Consolidate hrtimer initialization - Part 1
Date: Thu, 31 Oct 2024 15:36:09 +0100 [thread overview]
Message-ID: <20241031143609.bX-WHDeK@linutronix.de> (raw)
In-Reply-To: <20241031-hrtimer_setup_p1_v2-v2-0-23400656575a@linutronix.de>
I just learned the hard way that git-send-email doesn't work for a .mbox
file including multiple emails. Sorry for the noises, please ignore this
one. I will resend it shortly.
On Thu, Oct 31, 2024 at 03:19:21PM +0100, Nam Cao wrote:
> This is a follow up to version 1, which can be found here:
>
> https://lore.kernel.org/lkml/cover.1729864615.git.namcao@linutronix.de/
>
> hrtimers must be initialized with a hrtimer_init() variant, and after that
> the timer's callback function must be setup separately.
>
> This seperate initialization is error prone and awkward to use. The
> seperate initialization is also problematic for a clean Rust abstraction.
>
> A combined setup function like timer_setup() is less error prone and
> simpler to use.
>
> This first part of the conversion provides:
>
> - a set of hrtimer_setup*() variants, which take the function pointer as
> argument.
>
> - hrtimer_update_function() which allows to change the callback function
> after initialization with the proper safety checks in place.
>
> - conversion of the hrtimer_init*_on_stack() variants
>
> - some minor cleanups
>
> The remaining users will be converted in follow up series.
>
> Most conversions were done with Coccinelle. See sematic patch below.
>
> Changes versus v1:
> - Open code kvm_xen_init_vcpu() (Sean)
> - Drop the can/bcm patch (Oliver)
> - Folded the removal of hrtimer_init_sleeper() (tglx)
> - Update change logs and cover letter
>
> The series applies on top of:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
>
> and is also available from git:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git hrtimer-setup-part1-v2
>
> Best regards,
>
> Nam
prev parent reply other threads:[~2024-11-01 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 14:19 [PATCH v2 00/19] hrtimers: Consolidate hrtimer initialization - Part 1 Nam Cao
2024-10-31 14:36 ` Nam Cao [this message]
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=20241031143609.bX-WHDeK@linutronix.de \
--to=namcao@linutronix.de \
--cc=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=anna-maria@linutronix.de \
--cc=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=frederic@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=jstultz@google.com \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=kvalo@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=seanjc@google.com \
--cc=socketcan@hartkopp.net \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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