Re: [PATCH v4 2/2] livepatch: Convert timeouts to secs_to_jiffies()

2024-12-18 Thread Easwar Hariharan
On 12/18/2024 12:48 AM, Christophe Leroy wrote: > > > Le 18/12/2024 à 09:38, Petr Mladek a écrit : >> On Tue 2024-12-17 23:09:59, Easwar Hariharan wrote: >>> Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced >>> secs_to_jiffies(). A

[PATCH v4 2/2] livepatch: Convert timeouts to secs_to_jiffies()

2024-12-17 Thread Easwar Hariharan
following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) While here, replace the schedule_delayed_work() call with a 0 timeout with an immediate schedule_work() call. Signed-off-

[PATCH v4 1/2] s390: kernel: Convert timeouts to use secs_to_jiffies()

2024-12-17 Thread Easwar Hariharan
i with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) While here, manually convert the one other remaining instance as requested. Acked-by: Alexander Gordeev Signed-off-

[PATCH v4 0/2] Converge on using secs_to_jiffies()

2024-12-17 Thread Easwar Hariharan
Fixups for a couple of patches that received review after the series was queued into mm. Signed-off-by: Easwar Hariharan --- Changes in v4: - Replace schedule_delayed_work() that had a 0 timeout with schedule_work() in livepatch (Christophe Leroy) - Added requested hunk in s390 (Alexander