diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-02 07:19:35 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-02 07:19:35 +0000 |
commit | 3bd7de5a7ca507ccc85a2a4ede9e0fcb70122d19 (patch) | |
tree | e5e529ce180054c5b2e5e6f0cded42570b858dde /sys/sys/sched.h | |
parent | 26fa289262c55377a8de57e630722327dfe7b50c (diff) | |
download | FreeBSD-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.h | 3 |
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 |