lkml.org 
[lkml]   [2022]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] cpu: printk error information when call cpu_up() failed.
Date
On Mon, Nov 28 2022 at 21:28, Yuan ZhaoXiong wrote:
> It is better to printk error information out when calling cpu_up() failed.
> Users will observe cpu up error conveniently via the kernel log.
...
> + if (!cpu_online(cpu)) {
> + error = cpu_up(cpu, CPUHP_ONLINE);
> + if (error)
> + pr_err("Error taking CPU%d up: %d\n", cpu, error);

What's useful about it? If the CPU does not come up then it won't be
online.

The error code is pretty useless too because it does not tell you which
part of the online procedure caused it to fail. Just assume it fails
with -ENOMEM, then good luck to find the callback which observed the
memory allocation fail.

Thanks,

tglx

\
 
 \ /
  Last update: 2022-12-01 12:41    [W:0.230 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site