Files
android_kernel_xiaomi_sm8450/arch/powerpc/include/asm
Benjamin Herrenschmidt cbc9565ee8 powerpc: Remove ksp_limit on ppc64
We've been keeping that field in thread_struct for a while, it contains
the "limit" of the current stack pointer and is meant to be used for
detecting stack overflows.

It has a few problems however:

 - First, it was never actually *used* on 64-bit. Set and updated but
not actually exploited

 - When switching stack to/from irq and softirq stacks, it's update
is racy unless we hard disable interrupts, which is costly. This
is fine on 32-bit as we don't soft-disable there but not on 64-bit.

Thus rather than fixing 2 in order to implement 1 in some hypothetical
future, let's remove the code completely from 64-bit. In order to avoid
a clutter of ifdef's, we remove the updates from C code completely
during interrupt stack switching, and instead maintain it from the
asm helper that is used to do the stack switching in the first place.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-09-25 14:15:51 +10:00
..
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2013-04-18 13:03:53 +10:00
2013-04-26 16:08:16 +10:00
2012-03-28 18:30:02 +01:00
2011-11-08 14:51:46 +11:00
2012-03-20 21:48:30 +08:00
2008-08-18 21:40:03 +02:00
2008-08-04 13:18:17 +10:00
2011-12-08 14:02:23 +11:00
2011-05-22 08:47:53 -04:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2010-05-05 09:11:10 -04:00
2012-11-15 13:00:45 +11:00
2013-08-14 15:33:40 +10:00
2011-03-31 11:26:23 -03:00
2010-10-26 16:52:08 -07:00
2011-03-31 11:26:23 -03:00
2013-09-25 14:15:51 +10:00
2009-12-09 17:10:37 +11:00
2011-09-20 09:19:40 +10:00
2013-09-05 17:29:20 +10:00
2013-08-14 15:33:22 +10:00
2011-04-20 17:01:19 +10:00
2012-09-17 16:31:51 +10:00
2013-08-14 15:33:40 +10:00
2011-03-31 11:26:23 -03:00
2013-08-27 15:03:30 +10:00
2011-03-31 11:26:23 -03:00
2011-05-06 13:32:35 +10:00