Re: [PATCH 1/2] powerpc: Make the code in __show_regs nice-looking

2021-04-24 Thread Xiongwei Song
On Thu, Apr 22, 2021 at 11:27 PM Christophe Leroy wrote: > > > > Le 22/04/2021 à 17:10, Xiongwei Song a écrit : > > From: Xiongwei Song > > > > Create a new function named interrupt_detail_printable to judge which > > interrupts can print esr/dsisr register. > > What is the benefit of that functi

Re: [PATCH 1/2] powerpc: Make the code in __show_regs nice-looking

2021-04-22 Thread Christophe Leroy
Le 22/04/2021 à 17:10, Xiongwei Song a écrit : From: Xiongwei Song Create a new function named interrupt_detail_printable to judge which interrupts can print esr/dsisr register. What is the benefit of that function ? It may be interesting if the test was done at several places, but as it

[PATCH 1/2] powerpc: Make the code in __show_regs nice-looking

2021-04-22 Thread Xiongwei Song
From: Xiongwei Song Create a new function named interrupt_detail_printable to judge which interrupts can print esr/dsisr register. Signed-off-by: Xiongwei Song --- arch/powerpc/kernel/process.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/arch/powe