diff options
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/hardwall.h | 2 | ||||
-rw-r--r-- | arch/tile/kernel/hardwall.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/tile/include/asm/hardwall.h b/arch/tile/include/asm/hardwall.h index 2f572b6b7bc2..44d2765bde2b 100644 --- a/arch/tile/include/asm/hardwall.h +++ b/arch/tile/include/asm/hardwall.h | |||
@@ -23,7 +23,7 @@ | |||
23 | struct proc_dir_entry; | 23 | struct proc_dir_entry; |
24 | #ifdef CONFIG_HARDWALL | 24 | #ifdef CONFIG_HARDWALL |
25 | void proc_tile_hardwall_init(struct proc_dir_entry *root); | 25 | void proc_tile_hardwall_init(struct proc_dir_entry *root); |
26 | int proc_pid_hardwall(struct task_struct *task, char *buffer); | 26 | int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task); |
27 | #else | 27 | #else |
28 | static inline void proc_tile_hardwall_init(struct proc_dir_entry *root) {} | 28 | static inline void proc_tile_hardwall_init(struct proc_dir_entry *root) {} |
29 | #endif | 29 | #endif |
diff --git a/arch/tile/kernel/hardwall.c b/arch/tile/kernel/hardwall.c index 531f4c365351..aca6000bca75 100644 --- a/arch/tile/kernel/hardwall.c +++ b/arch/tile/kernel/hardwall.c | |||
@@ -947,15 +947,15 @@ static void hardwall_remove_proc(struct hardwall_info *info) | |||
947 | remove_proc_entry(buf, info->type->proc_dir); | 947 | remove_proc_entry(buf, info->type->proc_dir); |
948 | } | 948 | } |
949 | 949 | ||
950 | int proc_pid_hardwall(struct task_struct *task, char *buffer) | 950 | int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns, |
951 | struct pid *pid, struct task_struct *task) | ||
951 | { | 952 | { |
952 | int i; | 953 | int i; |
953 | int n = 0; | 954 | int n = 0; |
954 | for (i = 0; i < HARDWALL_TYPES; ++i) { | 955 | for (i = 0; i < HARDWALL_TYPES; ++i) { |
955 | struct hardwall_info *info = task->thread.hardwall[i].info; | 956 | struct hardwall_info *info = task->thread.hardwall[i].info; |
956 | if (info) | 957 | if (info) |
957 | n += sprintf(&buffer[n], "%s: %d\n", | 958 | seq_printf(m, "%s: %d\n", info->type->name, info->id); |
958 | info->type->name, info->id); | ||
959 | } | 959 | } |
960 | return n; | 960 | return n; |
961 | } | 961 | } |