[PATCH 2/4] cpuacct: show correct file mode

Li Zefan
2009-03-02T02:14:33Z

cpuacct.usage_percpu is read-only.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
kernel/sched.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index e66f009..638aa4d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -9734,6 +9734,7 @@ static struct cftype files[] = {
{
.name = "usage_percpu",
.read_seq_string = cpuacct_percpu_seq_read,
+ .mode = 0444,
},

};
-- 1.5.4.rc3