lkml.org 
[lkml]   [2009]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/4] cpuacct: show correct file mode
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

\
 
 \ /
  Last update: 2009-03-02 03:17    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site