sched_ule.c (268483) | sched_ule.c (271194) |
---|---|
1/*- 2 * Copyright (c) 2002-2007, 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 --- 22 unchanged lines hidden (view full) --- 31 * 32 * etymology: 33 * ULE is the last three letters in schedule. It owes its name to a 34 * generic user created for a scheduling system by Paul Mikesell at 35 * Isilon Systems and a general lack of creativity on the part of the author. 36 */ 37 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2007, 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 --- 22 unchanged lines hidden (view full) --- 31 * 32 * etymology: 33 * ULE is the last three letters in schedule. It owes its name to a 34 * generic user created for a scheduling system by Paul Mikesell at 35 * Isilon Systems and a general lack of creativity on the part of the author. 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: stable/10/sys/kern/sched_ule.c 268483 2014-07-10 09:08:02Z kib $"); | 39__FBSDID("$FreeBSD: stable/10/sys/kern/sched_ule.c 271194 2014-09-06 15:26:38Z mav $"); |
40 41#include "opt_hwpmc_hooks.h" 42#include "opt_kdtrace.h" 43#include "opt_sched.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/kdb.h> --- 1809 unchanged lines hidden (view full) --- 1857 cpuid = PCPU_GET(cpuid); 1858 tdq = TDQ_CPU(cpuid); 1859 ts = td->td_sched; 1860 mtx = td->td_lock; 1861 sched_pctcpu_update(ts, 1); 1862 ts->ts_rltick = ticks; 1863 td->td_lastcpu = td->td_oncpu; 1864 td->td_oncpu = NOCPU; | 40 41#include "opt_hwpmc_hooks.h" 42#include "opt_kdtrace.h" 43#include "opt_sched.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/kdb.h> --- 1809 unchanged lines hidden (view full) --- 1857 cpuid = PCPU_GET(cpuid); 1858 tdq = TDQ_CPU(cpuid); 1859 ts = td->td_sched; 1860 mtx = td->td_lock; 1861 sched_pctcpu_update(ts, 1); 1862 ts->ts_rltick = ticks; 1863 td->td_lastcpu = td->td_oncpu; 1864 td->td_oncpu = NOCPU; |
1865 preempted = !(td->td_flags & TDF_SLICEEND); | 1865 preempted = !((td->td_flags & TDF_SLICEEND) || 1866 (flags & SWT_RELINQUISH)); |
1866 td->td_flags &= ~(TDF_NEEDRESCHED | TDF_SLICEEND); 1867 td->td_owepreempt = 0; 1868 if (!TD_IS_IDLETHREAD(td)) 1869 tdq->tdq_switchcnt++; 1870 /* 1871 * The lock pointer in an idle thread should never change. Reset it 1872 * to CAN_RUN as well. 1873 */ --- 1010 unchanged lines hidden --- | 1867 td->td_flags &= ~(TDF_NEEDRESCHED | TDF_SLICEEND); 1868 td->td_owepreempt = 0; 1869 if (!TD_IS_IDLETHREAD(td)) 1870 tdq->tdq_switchcnt++; 1871 /* 1872 * The lock pointer in an idle thread should never change. Reset it 1873 * to CAN_RUN as well. 1874 */ --- 1010 unchanged lines hidden --- |