[rtems-libbsd commit] Remove superfluous include, format
Sebastian Huber
sebh at rtems.org
Wed Apr 18 15:20:27 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: e2b2fc661c0ee5c369952a39465d4f35a96c5940
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e2b2fc661c0ee5c369952a39465d4f35a96c5940
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Apr 18 17:22:44 2012 +0200
Remove superfluous include, format
---
freebsd/kern/kern_subr.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/freebsd/kern/kern_subr.c b/freebsd/kern/kern_subr.c
index 9ece7aa..fecb91c 100644
--- a/freebsd/kern/kern_subr.c
+++ b/freebsd/kern/kern_subr.c
@@ -70,11 +70,6 @@ __FBSDID("$FreeBSD$");
#include <freebsd/vm/vm_object.h>
#endif
-
-#ifdef __rtems__
-#include <rtems.h>
-#endif
-
#ifndef __rtems__
SYSCTL_INT(_kern, KERN_IOV_MAX, iov_max, CTLFLAG_RD, NULL, UIO_MAXIOV,
"Maximum number of elements in an I/O vector; sysconf(_SC_IOV_MAX)");
@@ -485,9 +480,9 @@ uio_yield(void)
sched_prio(td, td->td_user_pri);
mi_switch(SW_INVOL | SWT_RELINQUISH, NULL);
thread_unlock(td);
-#else
- rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
-#endif
+#else /* __rtems__ */
+ rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
+#endif /* __rtems__ */
PICKUP_GIANT();
}
More information about the vc
mailing list