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

Re: [PATCH 19/22] livepatch: Convert timeouts to secs_to_jiffies()



On Fri, Nov 15, 2024 at 09:22:49PM +0000, Easwar Hariharan wrote:
> diff --git a/samples/livepatch/livepatch-callbacks-busymod.c 
> b/samples/livepatch/livepatch-callbacks-busymod.c
> index 
> 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba
>  100644
> --- a/samples/livepatch/livepatch-callbacks-busymod.c
> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
> @@ -45,7 +45,7 @@ static int livepatch_callbacks_mod_init(void)
>  {
>       pr_info("%s\n", __func__);
>       schedule_delayed_work(&work,
> -             msecs_to_jiffies(1000 * 0));
> +             secs_to_jiffies(0));

Better to just call schedule_delayed_work(&work, 0);

>       return 0;
>  }

regards,
dan carpenter



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.