diff options
author | Tejun Heo <tj@kernel.org> | 2009-09-24 00:43:11 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-09-29 00:17:57 (GMT) |
commit | 635b75fc18858d3522e481c043de764766db923c (patch) | |
tree | 0bd2dc916bac8d0188bdd3ba15d0a1b00aa86e48 /arch | |
parent | 6ea529a2037ce662fc6bfa572b46d47407d08805 (diff) | |
download | linux-fsl-qoriq-635b75fc18858d3522e481c043de764766db923c.tar.xz |
percpu: make pcpu_setup_first_chunk() failures more verbose
The parameters to pcpu_setup_first_chunk() come from different sources
depending on architecture and can be quite complex. The function runs
various sanity checks on the parameters and triggers BUG() if
something isn't right. However, this is very early during the boot
and not reporting exactly what the problem is makes debugging even
harder.
Add PCPU_SETUP_BUG() macro which prints out enough information about
the parameters. As the macro still puts separate BUG() for each
check, it won't lose any information even on the situations where only
the program counter can be retrieved.
While at it, also bump pcpu_dump_alloc_info() message to KERN_INFO so
that it's visible on the console if boot fails to complete.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions