[Xenomai-git] Philippe Gerum : copperplate/regd: detect SCHED_WEAK threads

2013-12-22 Thread git repository hosting
Module: xenomai-forge
Branch: master
Commit: 433296d8fe12d296032af2db0335fee34cf56349
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=433296d8fe12d296032af2db0335fee34cf56349

Author: Philippe Gerum 
Date:   Sat Dec 21 17:47:03 2013 +0100

copperplate/regd: detect SCHED_WEAK threads

---

 lib/copperplate/regd/fs-common.c |9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/lib/copperplate/regd/fs-common.c b/lib/copperplate/regd/fs-common.c
index 96a4f87..ea34148 100644
--- a/lib/copperplate/regd/fs-common.c
+++ b/lib/copperplate/regd/fs-common.c
@@ -148,21 +148,18 @@ ssize_t read_threads(struct fsobj *fsobj, char *buf,
case SCHED_RR:
sched_class = "rr";
break;
-#ifdef SCHED_SPORADIC
case SCHED_SPORADIC:
sched_class = "pss";
break;
-#endif
-#ifdef SCHED_TP
case SCHED_TP:
sched_class = "tp";
break;
-#endif
-#ifdef SCHED_QUOTA
case SCHED_QUOTA:
sched_class = "quota";
break;
-#endif
+   case SCHED_WEAK:
+   sched_class = "weak";
+   break;
default:
sched_class = "other";
break;


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : copperplate/regd: detect SCHED_WEAK threads

2013-12-21 Thread git repository hosting
Module: xenomai-forge
Branch: next
Commit: 433296d8fe12d296032af2db0335fee34cf56349
URL:
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=433296d8fe12d296032af2db0335fee34cf56349

Author: Philippe Gerum 
Date:   Sat Dec 21 17:47:03 2013 +0100

copperplate/regd: detect SCHED_WEAK threads

---

 lib/copperplate/regd/fs-common.c |9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/lib/copperplate/regd/fs-common.c b/lib/copperplate/regd/fs-common.c
index 96a4f87..ea34148 100644
--- a/lib/copperplate/regd/fs-common.c
+++ b/lib/copperplate/regd/fs-common.c
@@ -148,21 +148,18 @@ ssize_t read_threads(struct fsobj *fsobj, char *buf,
case SCHED_RR:
sched_class = "rr";
break;
-#ifdef SCHED_SPORADIC
case SCHED_SPORADIC:
sched_class = "pss";
break;
-#endif
-#ifdef SCHED_TP
case SCHED_TP:
sched_class = "tp";
break;
-#endif
-#ifdef SCHED_QUOTA
case SCHED_QUOTA:
sched_class = "quota";
break;
-#endif
+   case SCHED_WEAK:
+   sched_class = "weak";
+   break;
default:
sched_class = "other";
break;


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git