diff options
| author | Christoph Hellwig <hch@lst.de> | 2002-11-02 18:45:55 -0800 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2002-11-02 18:45:55 -0800 |
| commit | abcb2f165501ff80e738748a29625b71fe7e6293 (patch) | |
| tree | 7f26059a9f2aee3a151a312a3af55610373039f3 /kernel/sys.c | |
| parent | 0a541971fe1821ee8659ec0f8496d1fd2e9fec84 (diff) | |
[PATCH] make swap code conditional
Make the swap code conditional on CONFIG_SWAP. This is mostly for
uClinux, but !CONFIG_SWAP compiles and boots fine for i386, too -
the only problem I've seen is that X doesn't starts, it's probably
shm-related, thus it's disabled unconditionally for "normal" arches.
The patch makes three files in mm/ conditional on CONFIG_SWAP, reorganzies
include/linux/swap.h big time to provide stubs for the !CONFIG_SWAP case,
moves the remaining /proc/swaps code to swapfile.c and cleans up some
more MM code to compile fine without CONFIG_SWAP
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 3c2992ac68f2..22c1c93ec6da 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -204,6 +204,8 @@ cond_syscall(sys_nfsservctl) cond_syscall(sys_quotactl) cond_syscall(sys_acct) cond_syscall(sys_lookup_dcookie) +cond_syscall(sys_swapon) +cond_syscall(sys_swapoff) static int set_one_prio(struct task_struct *p, int niceval, int error) { |
