sched: Make sched_feat_names const
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Fri, 25 May 2012 06:41:54 +0000 (15:41 +0900)
committerIngo Molnar <mingo@kernel.org>
Wed, 30 May 2012 12:02:26 +0000 (14:02 +0200)
The strings sched_feat_names are never changed.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/4FBF29B2.9030904@ct.jp.nec.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c

index 70cc36a6073f6d6284a1dea02defb20132b345fd..c1679a098fc732a402acfb2c9254ff097496ed15 100644 (file)
@@ -142,7 +142,7 @@ const_debug unsigned int sysctl_sched_features =
 #define SCHED_FEAT(name, enabled)      \
        #name ,
 
-static __read_mostly char *sched_feat_names[] = {
+static const char * const sched_feat_names[] = {
 #include "features.h"
        NULL
 };
This page took 0.030675 seconds and 5 git commands to generate.