[Midnightbsd-cvs] src [12364] trunk/sys/sys/sched.h: sync with FreeBSD 11-stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Feb 9 13:34:17 EST 2020
Revision: 12364
http://svnweb.midnightbsd.org/src/?rev=12364
Author: laffer1
Date: 2020-02-09 13:34:16 -0500 (Sun, 09 Feb 2020)
Log Message:
-----------
sync with FreeBSD 11-stable
Modified Paths:
--------------
trunk/sys/sys/sched.h
Modified: trunk/sys/sys/sched.h
===================================================================
--- trunk/sys/sys/sched.h 2020-02-09 18:34:06 UTC (rev 12363)
+++ trunk/sys/sys/sched.h 2020-02-09 18:34:16 UTC (rev 12364)
@@ -57,7 +57,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $FreeBSD: stable/10/sys/sys/sched.h 253604 2013-07-24 09:45:31Z avg $
+ * $FreeBSD: stable/11/sys/sys/sched.h 331722 2018-03-29 02:50:57Z eadler $
*/
#ifndef _SCHED_H_
@@ -91,6 +91,7 @@
* priorities inherited from their procs, and use up cpu time.
*/
void sched_exit_thread(struct thread *td, struct thread *child);
+u_int sched_estcpu(struct thread *td);
void sched_fork_thread(struct thread *td, struct thread *child);
void sched_lend_prio(struct thread *td, u_char prio);
void sched_lend_user_prio(struct thread *td, u_char pri);
@@ -103,7 +104,6 @@
void sched_user_prio(struct thread *td, u_char prio);
void sched_userret(struct thread *td);
void sched_wakeup(struct thread *td);
-void sched_preempt(struct thread *td);
#ifdef RACCT
#ifdef SCHED_4BSD
fixpt_t sched_pctcpu_delta(struct thread *td);
@@ -115,8 +115,8 @@
*/
void sched_add(struct thread *td, int flags);
void sched_clock(struct thread *td);
+void sched_preempt(struct thread *td);
void sched_rem(struct thread *td);
-void sched_tick(int cnt);
void sched_relinquish(struct thread *td);
struct thread *sched_choose(void);
void sched_idletd(void *);
@@ -223,6 +223,7 @@
*/
#ifndef _KERNEL
#include <sys/cdefs.h>
+#include <sys/_timespec.h>
#include <sys/_types.h>
#ifndef _PID_T_DECLARED
@@ -230,8 +231,6 @@
#define _PID_T_DECLARED
#endif
-struct timespec;
-
__BEGIN_DECLS
int sched_get_priority_max(int);
int sched_get_priority_min(int);
More information about the Midnightbsd-cvs
mailing list