- Honor the PREEMPTION and FULL_PREEMPTION flags by setting the default
value for kern.sched.preempt_thresh appropriately. It can still by adjusted at runtime. ULE will still use IPI_PREEMPT in certain migration situations. - Assert that we're not trying to compile ULE on an unsupported architecture. To date, I believe only i386 and amd64 have implemented the third cpu switch argument required. Approved by: re
This commit is contained in:
parent
45099be671
commit
02e2d6b445
@ -71,8 +71,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/smp.h>
|
||||
|
||||
#ifndef PREEMPTION
|
||||
#error "SCHED_ULE requires options PREEMPTION"
|
||||
#if !defined(__i386__) && !defined(__amd64__)
|
||||
#error "This architecture is not currently compatible with ULE"
|
||||
#endif
|
||||
|
||||
#define KTR_ULE 0
|
||||
@ -174,7 +174,15 @@ static int sched_interact = SCHED_INTERACT_THRESH;
|
||||
static int realstathz;
|
||||
static int tickincr;
|
||||
static int sched_slice;
|
||||
#ifdef PREEMPTION
|
||||
#ifdef FULL_PREEMPTION
|
||||
static int preempt_thresh = PRI_MAX_IDLE;
|
||||
#else
|
||||
static int preempt_thresh = PRI_MIN_KERN;
|
||||
#endif
|
||||
#else
|
||||
static int preempt_thresh = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* tdq - per processor runqs and statistics. All fields are protected by the
|
||||
|
Loading…
x
Reference in New Issue
Block a user