mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-26 12:00:39 +08:00
Remove superfluous include, format
This commit is contained in:
parent
2f52893f70
commit
e2b2fc661c
@ -70,11 +70,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <freebsd/vm/vm_object.h>
|
#include <freebsd/vm/vm_object.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __rtems__
|
|
||||||
#include <rtems.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __rtems__
|
#ifndef __rtems__
|
||||||
SYSCTL_INT(_kern, KERN_IOV_MAX, iov_max, CTLFLAG_RD, NULL, UIO_MAXIOV,
|
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)");
|
"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);
|
sched_prio(td, td->td_user_pri);
|
||||||
mi_switch(SW_INVOL | SWT_RELINQUISH, NULL);
|
mi_switch(SW_INVOL | SWT_RELINQUISH, NULL);
|
||||||
thread_unlock(td);
|
thread_unlock(td);
|
||||||
#else
|
#else /* __rtems__ */
|
||||||
rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
rtems_task_wake_after(RTEMS_YIELD_PROCESSOR);
|
||||||
#endif
|
#endif /* __rtems__ */
|
||||||
PICKUP_GIANT();
|
PICKUP_GIANT();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user