From owner-p4-projects@FreeBSD.ORG Wed Jun 28 07:59:52 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BFC7816A411; Wed, 28 Jun 2006 07:59:52 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83F8B16A40F for ; Wed, 28 Jun 2006 07:59:52 +0000 (UTC) (envelope-from cdjones@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A0E543D94 for ; Wed, 28 Jun 2006 07:59:49 +0000 (GMT) (envelope-from cdjones@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5S7xnXY066726 for ; Wed, 28 Jun 2006 07:59:49 GMT (envelope-from cdjones@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5S7xnmw066723 for perforce@freebsd.org; Wed, 28 Jun 2006 07:59:49 GMT (envelope-from cdjones@FreeBSD.org) Date: Wed, 28 Jun 2006 07:59:49 GMT Message-Id: <200606280759.k5S7xnmw066723@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cdjones@FreeBSD.org using -f From: Chris Jones To: Perforce Change Reviews Cc: Subject: PERFORCE change 100189 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 07:59:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=100189 Change 100189 by cdjones@cdjones-impulse on 2006/06/28 07:59:04 Put sched.h's prototypes in place. Affected files ... .. //depot/projects/soc2006/cdjones_jail/src/sys/kern/sched_hier.c#2 edit .. //depot/projects/soc2006/cdjones_jail/src/sys/sys/jail.h#3 edit Differences ... ==== //depot/projects/soc2006/cdjones_jail/src/sys/kern/sched_hier.c#2 (text+ko) ==== @@ -46,6 +46,7 @@ #include #include #include +#include #ifdef KTRACE #include #include @@ -54,3 +55,195 @@ #ifdef HWPMC_HOOKS #include #endif + +/* +static struct kproc_desc sched_kp = { + "schedcpu", + schedcpu_thread, + NULL +}; +SYSINIT(schedcpu, SI_SUB_RUN_SCHEDULER, SI_ORDER_FIRST, kproc_start, &sched_kp) +*/ + +static void sched_setup(void *dummy); +SYSINIT(sched_setup, SI_SUB_RUN_QUEUE, SI_ORDER_FIRST, sched_setup, NULL) + +SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RD, 0, "Scheduler"); + +SYSCTL_STRING(_kern_sched, OID_AUTO, name, CTLFLAG_RD, "hier", 0, + "Scheduler name"); + +void +sched_setup(void *dummy) +{ + /* TODO */ +} + +/* Common external interface stuff goes here. + (from sys/sched.h) +*/ + +void +schedinit(void) +{ + + proc0.p_sched = NULL; + ksegrp0.kg_sched = &kg_sched0; + thread0.td_sched = &kse0; + kse0.ke_thread = &thread0; + kse0.ke_state = KES_THREAD; + kg_sched0.skg_concurrency = 1; + kg_sched0.skg_avail_openings = 0; /* we are already running */ +} + +int +sched_load(void) +{ + +} + +int +sched_rr_internal(void) +{ + +} + +int +sched_runnable(void) +{ + +} + +void +sched_exit(struct proc *p, struct thread *childtd) +{ +} + + +void +sched_fork(struct thread *td, struct thread *childtd) +{ +} + +void +sched_class(struct ksegrp *kg, int class) +{ +} + +void +sched_exit_ksegrp(struct ksegrp *kg, struct thread *childtd) +{ +} + +void +sched_fork_ksegrp(struct ksegrp *kg, struct thread *childtd) +{ +} + +void +sched_nice(struct proc *p, int nice) +{ +} + +void +sched_exit_thread(struct thread *td, struct thread *child) +{ +} + +void +sched_fork_thread(struct thread *td, struct thread *child) +{ +} + +fixpt_t +sched_pctcpu(struct thread *td) +{ +} + +void +sched_prio(struct thread *td, u_char prio) +{ +} + +void +sched_lend_prio(struct thread *td, u_char prio) +{ +} + +void +sched_sleep(struct thread *td) +{ +} + +void +sched_switch(struct thread *td, struct thread *newtd, int flags) +{ +} + +void +sched_unlend_prio(struct thread *td, u_char prio) +{ +} + +void +sched_userret(struct thread *td) +{ +} + +void +sched_wakeup(struct thread *td) +{ +} + +void +sched_add(struct thread *td, int flags) +{ +} + +void +sched_clock(struct thread *td) +{ +} + +void +sched_rem(struct thread *td) +{ +} + +void +sched_tick(void) +{ +} + +void +sched_relinquish(struct thread *td) +{ +} + +void +sched_bind(struct thread *td, int cpu) +{ +} + +void +sched_unbind(struct thread *td) +{ +} + +void +sched_sizeof_ksegrp(void) +{ + return (sizeof(struct ksegrp) + sizeof(struct kg_sched)); +} + +void +sched_sizeof_proc(void) +{ + return (sizeof(struct proc)); +} + +void +sched_sizeof_thread(void) +{ + return (sizeof(struct thread) + sizeof(struct td_sched)); +} ==== //depot/projects/soc2006/cdjones_jail/src/sys/sys/jail.h#3 (text+ko) ====