]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.0-t8-cpuset-3of4-lkml.patch
- added description of djurban's branch
[packages/kernel.git] / 2.6.0-t8-cpuset-3of4-lkml.patch
1 diff -Nru a/include/linux/cpuset.h b/include/linux/cpuset.h
2 --- a/include/linux/cpuset.h    Tue Oct 21 16:09:32 2003
3 +++ b/include/linux/cpuset.h    Tue Oct 21 16:09:32 2003
4 @@ -24,6 +24,13 @@
5  
6  int cpuset_realtologic_cpuid(struct cpuset * cs, int cpuid);
7  
8 +extern asmlinkage long sys_cpuset_create(cpuset_t *cpusetp, int flags);
9 +extern asmlinkage long sys_cpuset_destroy(cpuset_t cpuset);
10 +extern asmlinkage long sys_cpuset_attach(cpuset_t cpuset, pid_t pid);
11 +extern asmlinkage long sys_cpuset_alloc(cpuset_t cpuset, int len, 
12 +                                       unsigned long *user_mask_ptr);
13 +extern asmlinkage long sys_cpuset_getfreecpus(int flags, int len, 
14 +                                             unsigned long *user_mask_ptr);
15  #endif /* __KERNEL__ */
16  
17  #endif /* _LINUX_CPUSET_H */
18 diff -Nru a/kernel/sys.c b/kernel/sys.c
19 --- a/kernel/sys.c      Tue Oct 21 16:09:32 2003
20 +++ b/kernel/sys.c      Tue Oct 21 16:09:32 2003
21 @@ -17,6 +17,7 @@
22  #include <linux/init.h>
23  #include <linux/highuid.h>
24  #include <linux/fs.h>
25 +#include <linux/cpuset.h>
26  #include <linux/workqueue.h>
27  #include <linux/device.h>
28  #include <linux/times.h>
29 @@ -253,6 +254,12 @@
30  cond_syscall(sys_epoll_wait)
31  cond_syscall(sys_pciconfig_read)
32  cond_syscall(sys_pciconfig_write)
33 +cond_syscall(sys_cpuset_create);
34 +cond_syscall(sys_cpuset_destroy);
35 +cond_syscall(sys_cpuset_alloc);
36 +cond_syscall(sys_cpuset_attach);
37 +cond_syscall(sys_cpuset_getfreecpus);
38 +
39  
40  static int set_one_prio(struct task_struct *p, int niceval, int error)
41  {
This page took 0.339112 seconds and 3 git commands to generate.