On 06.02.2026 21:24, [email protected] wrote:
> --- a/xen/drivers/char/console.c
> +++ b/xen/drivers/char/console.c
> @@ -1291,12 +1291,10 @@ static bool do_printk_ratelimit(unsigned int 
> ratelimit_ms,
>                                  unsigned int ratelimit_burst)
>  {
>      static DEFINE_SPINLOCK(ratelimit_lock);
> -    static unsigned long toks;
> -    static unsigned long last_msg;
> +    static s_time_t toks, last_msg;
> +    s_time_t now, ms;

For now (i.e. return values of NOW()) s_time_t is appropriate to use. For
millisecond values and alike it isn't, though.

Jan

Reply via email to