This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
CYGSEM_KERNEL_SCHED_TIMESLICE
- To: "'ecos-discuss at sourceware dot cygnus dot com'" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] CYGSEM_KERNEL_SCHED_TIMESLICE
- From: John Gumb <john at talisker dot demon dot co dot uk>
- Date: Tue, 4 Sep 2001 00:11:02 +0100
Hi,
I tried turning off timeslicing (setting CYGSEM_KERNEL_SCHED_TIMESLICE to 0 in ecos.ecc) in a recent CVS tree. File ecos/packages/kernel/current/src/sched/mlqueue.cxx then doesn't compile as follows:
/d/home/jag/ecos/packages/kernel/current/src/sched/mlqueue.cxx: In method `Cyg_S
cheduler_Implementation::Cyg_Scheduler_Implementation()':
/d/home/jag/ecos/packages/kernel/current/src/sched/mlqueue.cxx:109: `timeslice_c
ount' undeclared (first use this function)
/d/home/jag/ecos/packages/kernel/current/src/sched/mlqueue.cxx:109: (Each undecl
ared identifier is reported only once
/d/home/jag/ecos/packages/kernel/current/src/sched/mlqueue.cxx:109: for each fun
ction it appears in.)
/d/home/jag/ecos/packages/kernel/current/src/sched/mlqueue.cxx:109: `CYGNUM_KERN
EL_SCHED_TIMESLICE_TICKS' undeclared (first use this function)
make[1]: *** [src/sched/mlqueue.o.d] Error 1
make[1]: Leaving directory `/d/home/jag/work/pc/kernel/current'
make: *** [build] Error 2
Enclosing the errant code within #ifdef CYGSEM_KERNEL_SCHED_TIMESLICE seems to at least produce a build though I've not had chance to test it thoroughly yet.
Cheers,
John Gumb
Ridgeway Systems and Software
jgumb@ridgeway-sys.com; john@gumb.org