]> git.karo-electronics.de Git - karo-tx-linux.git/commit
parisc: remove _STK_LIM_MAX override
authorJohn David Anglin <dave.anglin@bell.net>
Sun, 27 Apr 2014 20:20:47 +0000 (16:20 -0400)
committerHelge Deller <deller@gmx.de>
Tue, 29 Apr 2014 14:03:17 +0000 (16:03 +0200)
commit1dda159ba3dd1b385f01bb7a20be9ad7d8dcb61f
tree07c30b18240195c888fa86a9675d3b1342b2d6af
parent2aafe1a4d451866e3e7b476e2fa0813b69b313c1
parisc: remove _STK_LIM_MAX override

There are only a couple of architectures that override _STK_LIM_MAX to
a non-infinity value. This changes the stack allocation semantics in
subtle ways. For example, GNU make changes its stack allocation to the
hard maximum defined by _STK_LIM_MAX. As a results, threads executed
by processes running under make are allocated a stack size of
_STK_LIM_MAX rather than a sensible default value. This causes various
thread stress tests to fail when they can't muster more than about 50
threads.

The attached change implements the default behavior used by the
majority of architectures.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
Cc: stable@vger.kernel.org # 3.8+
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/uapi/asm/resource.h