On Sat, 2008-03-22 at 14:58 -0700, Roland McGrath wrote:
Well, if it's acceptable, for a first cut (and the patch I'll submit),
I'll handle the UP and SMP cases, encapsulating them in sched.h in such
a way as to make it invisible (as much as is possible) to the rest of
the code.
I've actually done this, although I didn't find the numbers particularly
interesting. I'll do it again and keep the numbers, though.
I'll do this at some point.
After looking at the code again, I now understand what you're talking
about. You overloaded it_*_expires to support both the POSIX interval
timers and RLIMIT_CPU. So the way I have things, setting one can stomp
the other.
Right, because the original effect was to only set the it_*_expires on
each individual task struct, leaving the one in the signal struct alone.
Might it be cleaner to handle the RLIMIT_CPU stuff separately, rather
than rolling it into the itimer handling?
--
Frank Mayhar <fmayhar@google.com>
Google, Inc.
--