add proc entry to identify scheduler framework
authorAnselm Busse <mail@anselm-busse.de>
Thu, 17 Sep 2015 14:12:45 +0000 (16:12 +0200)
committerAnselm Busse <mail@anselm-busse.de>
Thu, 17 Sep 2015 14:12:45 +0000 (16:12 +0200)
kernel/sysctl.c

index afc1dc6..e886f02 100644 (file)
@@ -416,6 +416,15 @@ static struct ctl_table kern_table[] = {
                .mode           = 0644,
                .proc_handler   = sched_rr_handler,
        },
+#ifdef CONFIG_MOD_SCHED
+       {
+               .procname       = "sched_type",
+               .data           = "CoBaS",
+               .maxlen         = sizeof("CoBaS"),
+               .mode           = 0444,
+               .proc_handler   = proc_dostring,
+       },
+#endif
 #ifdef CONFIG_SCHED_AUTOGROUP
        {
                .procname       = "sched_autogroup_enabled",