lkml.org 
[lkml]   [2020]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1/3] tick: Remove pointless cpu valid check in hotplug code
On Sun, Dec 06, 2020 at 10:12:54PM +0100, Thomas Gleixner wrote:

> void tick_handover_do_timer(void)
> {
> + if (tick_do_timer_cpu == smp_processor_id())
> + tick_do_timer_cpu = cpumask_first(cpu_online_mask);

For the paranoid amongst us, would it make sense to add something like:

/*
* There must always be at least one online CPU.
*/
WARN_ON_ONCE(tick_do_timer_cpu >= nr_cpu_ids);

> }

\
 
 \ /
  Last update: 2020-12-07 13:02    [W:0.160 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site