sched_ule.c (136170) | sched_ule.c (136173) |
---|---|
1/*- 2 * Copyright (c) 2002-2003, Jeffrey Roberson <jeff@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2003, Jeffrey Roberson <jeff@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/kern/sched_ule.c 136170 2004-10-05 22:03:10Z julian $"); | 28__FBSDID("$FreeBSD: head/sys/kern/sched_ule.c 136173 2004-10-05 22:14:02Z julian $"); |
29 30#include <opt_sched.h> 31 32#define kse td_sched 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kdb.h> --- 1260 unchanged lines hidden (view full) --- 1297 if (newtd != NULL) { 1298 /* 1299 * If we bring in a thread, 1300 * then account for it as if it had been added to the 1301 * run queue and then chosen. 1302 */ 1303 newtd->td_kse->ke_flags |= KEF_DIDRUN; 1304 SLOT_USE(newtd->td_ksegrp); | 29 30#include <opt_sched.h> 31 32#define kse td_sched 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/kdb.h> --- 1260 unchanged lines hidden (view full) --- 1297 if (newtd != NULL) { 1298 /* 1299 * If we bring in a thread, 1300 * then account for it as if it had been added to the 1301 * run queue and then chosen. 1302 */ 1303 newtd->td_kse->ke_flags |= KEF_DIDRUN; 1304 SLOT_USE(newtd->td_ksegrp); |
1305 TD_SET_RUNNING(newtd); | 1305 TD_SET_RUNNING(newtd); |
1306 kseq_load_add(KSEQ_SELF(), newtd->td_kse); 1307 } else 1308 newtd = choosethread(); 1309 if (td != newtd) 1310 cpu_switch(td, newtd); 1311 sched_lock.mtx_lock = (uintptr_t)td; 1312 1313 td->td_oncpu = PCPU_GET(cpuid); --- 618 unchanged lines hidden --- | 1306 kseq_load_add(KSEQ_SELF(), newtd->td_kse); 1307 } else 1308 newtd = choosethread(); 1309 if (td != newtd) 1310 cpu_switch(td, newtd); 1311 sched_lock.mtx_lock = (uintptr_t)td; 1312 1313 td->td_oncpu = PCPU_GET(cpuid); --- 618 unchanged lines hidden --- |