Changeset 26a8604f in mainline
- Timestamp:
- 2005-02-25T11:48:31Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 397c77f
- Parents:
- 453ba46
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/smp/ipi.c
r453ba46 r26a8604f 32 32 #include <arch/apic.h> 33 33 34 void ipi_broadcast (int ipi)34 void ipi_broadcast_arch(int ipi) 35 35 { 36 36 (void) l_apic_broadcast_custom_ipi((__u8) ipi); -
include/smp/ipi.h
r453ba46 r26a8604f 32 32 #ifdef __SMP__ 33 33 extern void ipi_broadcast(int ipi); 34 extern void ipi_broadcast_arch(int ipi); 35 #else 36 #define ipi_broadcast(x) ; 34 37 #endif /* __SMP__ */ 35 38 -
src/Makefile
r453ba46 r26a8604f 25 25 synch/mutex.c \ 26 26 synch/semaphore.c \ 27 synch/waitq.c 27 synch/waitq.c \ 28 smp/ipi.c 28 29 29 30 ifdef DEBUG_SPINLOCK -
src/proc/thread.c
r453ba46 r26a8604f 47 47 #include <list.h> 48 48 #include <config.h> 49 50 #ifdef __SMP__51 49 #include <arch/interrupt.h> 52 #include <arch/apic.h> 53 #endif /* __SMP__ */ 50 #include <smp/ipi.h> 54 51 55 52 char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; … … 123 120 124 121 spinlock_lock(&cpu->lock); 125 if ((++cpu->nrdy) > avg && (config.cpu_active == config.cpu_count)) {122 if ((++cpu->nrdy) > avg) { 126 123 /* 127 124 * If there are idle halted CPU's, this will wake them up. 128 125 */ 129 #ifdef __SMP__130 126 ipi_broadcast(VECTOR_WAKEUP_IPI); 131 #endif /* __SMP__ */132 127 } 133 128 spinlock_unlock(&cpu->lock);
Note:
See TracChangeset
for help on using the changeset viewer.