summaryrefslogtreecommitdiffstats
path: root/sys/sys/sched.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2008-03-02 07:19:35 +0000
committerjeff <jeff@FreeBSD.org>2008-03-02 07:19:35 +0000
commit3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19 (patch)
treee5e529ce180054c5b2e5e6f0cded42570b858dde /sys/sys/sched.h
parent26fa289262c55377a8de57e630722327dfe7b50c (diff)
downloadFreeBSD-src-3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19.zip
FreeBSD-src-3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19.tar.gz
- Add a new sched_affinity() api to be used in the upcoming cpuset
implementation. - Add empty implementations of sched_affinity() to 4BSD and ULE. Sponsored by: Nokia
Diffstat (limited to 'sys/sys/sched.h')
-rw-r--r--sys/sys/sched.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/sched.h b/sys/sys/sched.h
index 5f225e1..91be1df 100644
--- a/sys/sys/sched.h
+++ b/sys/sys/sched.h
@@ -32,7 +32,7 @@
*/
/*-
- * Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org>
+ * Copyright (c) 2002-2008, Jeffrey Roberson <jeff@freebsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -129,6 +129,7 @@ static __inline void sched_pin(void);
void sched_unbind(struct thread *td);
static __inline void sched_unpin(void);
int sched_is_bound(struct thread *td);
+void sched_affinity(struct thread *td);
/*
* These procedures tell the process data structure allocation code how
OpenPOWER on IntegriCloud