aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cpuset.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r--kernel/cpuset.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 12331120767c..64b3f791bbe5 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2609,7 +2609,7 @@ void __cpuset_memory_pressure_bump(void)
2609 * and we take cpuset_mutex, keeping cpuset_attach() from changing it 2609 * and we take cpuset_mutex, keeping cpuset_attach() from changing it
2610 * anyway. 2610 * anyway.
2611 */ 2611 */
2612static int proc_cpuset_show(struct seq_file *m, void *unused_v) 2612int proc_cpuset_show(struct seq_file *m, void *unused_v)
2613{ 2613{
2614 struct pid *pid; 2614 struct pid *pid;
2615 struct task_struct *tsk; 2615 struct task_struct *tsk;
@@ -2643,19 +2643,6 @@ out_free:
2643out: 2643out:
2644 return retval; 2644 return retval;
2645} 2645}
2646
2647static int cpuset_open(struct inode *inode, struct file *file)
2648{
2649 struct pid *pid = PROC_I(inode)->pid;
2650 return single_open(file, proc_cpuset_show, pid);
2651}
2652
2653const struct file_operations proc_cpuset_operations = {
2654 .open = cpuset_open,
2655 .read = seq_read,
2656 .llseek = seq_lseek,
2657 .release = single_release,
2658};
2659#endif /* CONFIG_PROC_PID_CPUSET */ 2646#endif /* CONFIG_PROC_PID_CPUSET */
2660 2647
2661/* Display task mems_allowed in /proc/<pid>/status file. */ 2648/* Display task mems_allowed in /proc/<pid>/status file. */