Re: [PATCH v3 3/3] reboot: refactor and comment the cpu selection code

2020-11-05 Thread Petr Mladek
On Tue 2020-11-03 22:40:25, Matteo Croce wrote: > From: Matteo Croce > > Small improvements to the code, without changing the way it works: > - use a local variable, to avoid a small time lapse where reboot_cpu > can have an invalid value > - comment the code which is not easy to understand at

[PATCH v3 3/3] reboot: refactor and comment the cpu selection code

2020-11-03 Thread Matteo Croce
From: Matteo Croce Small improvements to the code, without changing the way it works: - use a local variable, to avoid a small time lapse where reboot_cpu can have an invalid value - comment the code which is not easy to understand at a glance - merge two identical code blocks into one - replac