Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frank Mayhar
Date: Monday, September 15, 2008 - 10:59 am

On Mon, 2008-09-15 at 08:41 +0200, Ingo Molnar wrote:

Well, they are actually used in sched.h, in the inline routines
account_group_user_time() and friends, which are in turn used by
routines in sched.c.  The point here is that the
thread_group_cputime_account_xxx() routines are defined differently
depending upon whether we're building for UP or SMP and the
account_group_xxx() routines use the appropriate version accordingly.


Agreed, but Roland and I were trying to make life easier for folks who
have to maintain SMP and UP versions of this stuff, keeping it all in
one place rather than scattering it about.

If you insist, I'll un-inline the routines but this will mean moving all
of this (thread_group_cputime_account_xxx() and account_group_xxx()
routines) to sched.c.  Maybe that makes sense.  It's your call; I'll
hold off on the changes (and resubmitting the patch) while I wait for
you to let me know what you prefer.  Thanks.
-- 
Frank Mayhar <fmayhar@google.com>
Google, Inc.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] timers: fix itimer/many thread hang, fix, Ingo Molnar, (Sun Sep 14, 8:07 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang., Roland McGrath, (Sun Sep 14, 12:31 pm)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang., Frank Mayhar, (Mon Sep 15, 10:59 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang., Roland McGrath, (Wed Sep 17, 12:13 pm)