Re: [PATCH v2 00/19] hrtimers: Consolidate hrtimer initialization - Part 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx/
> 
> 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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux