]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/64s: Move system_call() symbol to just after setting MSR_EE
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 29 Jun 2017 17:49:17 +0000 (23:19 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Jul 2017 13:12:00 +0000 (23:12 +1000)
commit266de3a842d70b481ef1dac487acfad1240deb7e
treea449d0478c0d9d357e3d579eb6e207ffd2e0c937
parentcf7d6fb0672668690ba235280698c9aa6a81010a
powerpc/64s: Move system_call() symbol to just after setting MSR_EE

It is common to get a PMU interrupt right after the mtmsr instruction that
enables interrupts. Due to this, the stack trace profile gets needlessly split
across system_call_common() and system_call().

Previously, system_call() symbol was at the current place to hide a few
earlier symbols which have since been made private or removed entirely.

So, let's move system_call() slightly higher up, right after the mtmsr
instruction that enables interrupts. Convert existing references to
system_call to a local syscall symbol.

Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/entry_64.S