Commit 8371ca70 authored by Tim Schmielau's avatar Tim Schmielau Committed by Christoph Hellwig

[PATCH] move _STK_LIM to <linux_resource.h>

I don't see any connection between the stack limit and scheduling.  So I
think _STK_LIMIT is better defined in <linux/resource.h> than in
<linux/sched.h>.

The only place STK_LIM is used is in <asm/resource.h>, which only gets
included by <linux/resource.h>, so no change in #includes is necessary.
parent 75b13e1c
......@@ -49,6 +49,12 @@ struct rlimit {
#define PRIO_PGRP 1
#define PRIO_USER 2
/*
* Limit the stack by to some sane default: root can always
* increase this limit if needed.. 8MB seems reasonable.
*/
#define _STK_LIM (8*1024*1024)
/*
* Due to binary compatibility, the actual resource numbers
* may be different for different linux versions..
......
......@@ -440,12 +440,6 @@ do { if (atomic_dec_and_test(&(tsk)->usage)) __put_task_struct(tsk); } while(0)
#define PT_TRACE_CLONE 0x00000040
#define PT_TRACE_EXEC 0x00000080
/*
* Limit the stack by to some sane default: root can always
* increase this limit if needed.. 8MB seems reasonable.
*/
#define _STK_LIM (8*1024*1024)
#if CONFIG_SMP
extern void set_cpus_allowed(task_t *p, unsigned long new_mask);
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment