]> www.infradead.org Git - users/dwmw2/linux.git/commit
powerpc: Large user copy aware of full:rt:lazy preemption
authorShrikanth Hegde <sshegde@linux.ibm.com>
Sat, 16 Nov 2024 19:23:06 +0000 (00:53 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Thu, 19 Dec 2024 08:51:08 +0000 (14:21 +0530)
commiteda86a41a1c7700757c9217f74b9d57431c3e5f4
treea2d6fdc748008274abfc6b7eab2eea7b445d27aa
parent00199ed6f2ca6601b2c5856fac64132303d9437a
powerpc: Large user copy aware of full:rt:lazy preemption

Large user copy_to/from (more than 16 bytes) uses vmx instructions to
speed things up. Once the copy is done, it makes sense to try schedule
as soon as possible for preemptible kernels. So do this for
preempt=full/lazy and rt kernel.

Not checking for lazy bit here, since it could lead to unnecessary
context switches.

Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241116192306.88217-3-sshegde@linux.ibm.com
arch/powerpc/lib/vmx-helper.c