Re: [PATCH] powerpc/irq: don't use current_stack_pointer() in do_IRQ()

2019-12-12 Thread Christophe Leroy
Le 12/12/2019 à 13:51, Christoph Hellwig a écrit : Why can't current_stack_pointer be turned into an inline function using inline assembly? That would reduce the overhead for all callers. In the old days, it was a macro, and it was changed into an assembly function by commit https://git.

Re: [PATCH] powerpc/irq: don't use current_stack_pointer() in do_IRQ()

2019-12-12 Thread Christoph Hellwig
Why can't current_stack_pointer be turned into an inline function using inline assembly? That would reduce the overhead for all callers.

[PATCH] powerpc/irq: don't use current_stack_pointer() in do_IRQ()

2019-12-08 Thread Christophe Leroy
Before commit 7306e83ccf5c ("powerpc: Don't use CURRENT_THREAD_INFO to find the stack"), the current stack base address was obtained by calling current_thread_info(). That inline function was simply masking out the value of r1. In that commit, it was changed to using current_stack_pointer(), which