comparison packages/kernel/current/ChangeLog @ 2348:73a01c1a35ba

* src/sched/mlqueue.cxx (add_thread, yield): * src/sched/sched.cxx (unlock_inner, thread_entry): * include/mlqueue.hxx (class Cyg_SchedThread_Implementation): * include/kapidata.h (CYG_SCHEDTHREAD_TIMESLICE_MEMBER): * include/bitmap.hxx (class Cyg_SchedThread_Implementation): Reimplement timeslicing code. There is now a timeslice_count field in each thread which is moved to and from the per-CPU counter during thread dispatch. This approach has been taken to minimize the changes needed to SMP code. Scheduler specific thread functions handle counter save, restore and reset. These functions are defined (as empty inlines) even when timeslicing is disabled, or in non-timeslicing schedulers, to avoid adding ifdefs to the code (this change actually removes some). * tests/timeslice2.c: * cdl/kernel.cdl: Added timeslice2 test to test behaviour of timeslicing while being preempted.
author nickg
date Mon, 08 Jan 2007 16:20:13 +0000
parents f5f9a2e0c73b
children 64c9e46ea486
comparison
equal deleted inserted replaced
2347:f5f9a2e0c73b 2348:73a01c1a35ba
1 2007-01-07 Andrew Lunn <andrew.lunn@ascom.ch> 1 2007-01-07 Andrew Lunn <andrew.lunn@ascom.ch>
2 2
3 * src/sync/mbox.cxx (Cyg_Mbox::get): Fix compiler warning with gcc 3 * src/sync/mbox.cxx (Cyg_Mbox::get): Fix compiler warning with gcc
4 version 4.1.2. 4 version 4.1.2.
5
6 2006-12-08 Nick Garnett <nickg@ecoscentric.com>
7
8 * src/sched/mlqueue.cxx (add_thread, yield):
9 * src/sched/sched.cxx (unlock_inner, thread_entry):
10 * include/mlqueue.hxx (class Cyg_SchedThread_Implementation):
11 * include/kapidata.h (CYG_SCHEDTHREAD_TIMESLICE_MEMBER):
12 * include/bitmap.hxx (class Cyg_SchedThread_Implementation):
13 Reimplement timeslicing code. There is now a timeslice_count field
14 in each thread which is moved to and from the per-CPU counter
15 during thread dispatch. This approach has been taken to minimize
16 the changes needed to SMP code. Scheduler specific thread
17 functions handle counter save, restore and reset. These functions
18 are defined (as empty inlines) even when timeslicing is disabled,
19 or in non-timeslicing schedulers, to avoid adding ifdefs to the
20 code (this change actually removes some).
21
22 * tests/timeslice2.c:
23 * cdl/kernel.cdl: Added timeslice2 test to test behaviour of
24 timeslicing while being preempted.
5 25
6 2006-10-12 Nick Garnett <nickg@ecoscentric.com> 26 2006-10-12 Nick Garnett <nickg@ecoscentric.com>
7 27
8 * cdl/synch.cdl: Added CYGIMP_MBOX_USE_MBOXT_PLAIN option. This is 28 * cdl/synch.cdl: Added CYGIMP_MBOX_USE_MBOXT_PLAIN option. This is
9 tested in various places but was not actually defined. It now is 29 tested in various places but was not actually defined. It now is