diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2009-03-23 13:25:12 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2009-03-23 13:25:12 +0000 |
commit | 9fa08e1449bad2c67ac7a2930a541f74c9d50f4c (patch) | |
tree | cf76ab3f3c7cdc2f6ee262705e3466854af7d064 /sys/arch/arm | |
parent | 599d360b82cb69d59934037fc27b8a60f70f152a (diff) |
Processor affinity for processes.
- Split up run queues so that every cpu has one.
- Make setrunqueue choose the cpu where we want to make this process
runnable (this should be refined and less brutal in the future).
- When choosing the cpu where we want to run, make some kind of educated
guess where it will be best to run (very naive right now).
Other:
- Set operations for sets of cpus.
- load average calculations per cpu.
- sched_is_idle() -> curcpu_is_idle()
tested, debugged and prodded by many@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/pmap.c b/sys/arch/arm/arm/pmap.c index 3a8ecd90059..b47279ea4ec 100644 --- a/sys/arch/arm/arm/pmap.c +++ b/sys/arch/arm/arm/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.19 2008/10/28 20:16:58 drahn Exp $ */ +/* $OpenBSD: pmap.c,v 1.20 2009/03/23 13:25:11 art Exp $ */ /* $NetBSD: pmap.c,v 1.147 2004/01/18 13:03:50 scw Exp $ */ /* @@ -3327,7 +3327,7 @@ pmap_pageidlezero(struct vm_page *pg) for (i = 0, ptr = (int *)cdstp; i < (PAGE_SIZE / sizeof(int)); i++) { - if (!sched_is_idle()) { + if (!curcpu_is_idle()) { /* * A process has become ready. Abort now, * so we don't keep it waiting while we |