summaryrefslogtreecommitdiff
path: root/os/os-solaris.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-12-22 11:28:26 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-12-22 11:28:26 +0100
commit39555d0365036f12531f876e6b589a0bce4e5147 (patch)
tree262eff174fd98e539858d3035e5ebe442e4feb5d /os/os-solaris.h
parent4a3c7b90413beb215dae12a26701ccbefa4bc847 (diff)
downloadfio-39555d0365036f12531f876e6b589a0bce4e5147.tar.gz
fio-39555d0365036f12531f876e6b589a0bce4e5147.tar.bz2
Solaris pset fixes
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os-solaris.h')
-rw-r--r--os/os-solaris.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/os-solaris.h b/os/os-solaris.h
index a53fb40f..51c0ff4b 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -68,11 +68,11 @@ static inline int fio_set_odirect(int fd)
* pset binding hooks for fio
*/
#define fio_setaffinity(td) \
- pset_bind((td)->o.cpumask, P_PID, (td)->pid)
-#define fio_getaffinity(pid, ptr) 0
+ pset_bind((td)->o.cpumask, P_PID, (td)->pid, NULL)
+#define fio_getaffinity(pid, ptr) ({ 0; })
-#define fio_cpu_clear(mask, cpu) pset_assign(*(mask), (cpu), PS_NONE)
-#define fio_cpu_set(mask, cpu) pset_assign(*(mask), (cpu), PS_MYID)
+#define fio_cpu_clear(mask, cpu) pset_assign(PS_NONE, (cpu), NULL)
+#define fio_cpu_set(mask, cpu) pset_assign(*(mask), (cpu), NULL)
static inline int fio_cpuset_init(os_cpu_mask_t *mask)
{