login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
14
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ingo Molnar
Subject:
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
Date: Sunday, September 14, 2008 - 8:14 am
* Frank Mayhar <fmayhar@google.com> wrote:
quoted text
> --- a/include/linux/sched.h > +++ b/include/linux/sched.h
quoted text
> +/** > + * thread_group_cputime_account_user - Maintain utime for a thread group. > + * > + * @tgtimes: Pointer to thread_group_cputime structure. > + * @cputime: Time value by which to increment the utime field of that > + * structure. > + * > + * If thread group time is being maintained, get the structure for the > + * running CPU and update the utime field there. > + */ > +static inline void thread_group_cputime_account_user( > + struct thread_group_cputime *tgtimes, > + cputime_t cputime) > +{ > + if (tgtimes->totals) { > + struct task_cputime *times; > + > + times = per_cpu_ptr(tgtimes->totals, get_cpu()); > + times->utime = cputime_add(times->utime, cputime); > + put_cpu_no_resched(); > + } > +} > + > +/** > + * thread_group_cputime_account_system - Maintain stime for a thread group. > + * > + * @tgtimes: Pointer to thread_group_cputime structure. > + * @cputime: Time value by which to increment the stime field of that > + * structure. > + * > + * If thread group time is being maintained, get the structure for the > + * running CPU and update the stime field there. > + */ > +static inline void thread_group_cputime_account_system( > + struct thread_group_cputime *tgtimes, > + cputime_t cputime) > +{ > + if (tgtimes->totals) { > + struct task_cputime *times; > + > + times = per_cpu_ptr(tgtimes->totals, get_cpu()); > + times->stime = cputime_add(times->stime, cputime); > + put_cpu_no_resched(); > + } > +} > + > +/** > + * thread_group_cputime_account_exec_runtime - Maintain exec runtime for a > + * thread group. > + * > + * @tgtimes: Pointer to thread_group_cputime structure. > + * @ns: Time value by which to increment the sum_exec_runtime field > + * of that structure. > + * > + * If thread group time is being maintained, get the structure for the > + * running CPU and update the sum_exec_runtime field there. > + */ > +static inline void thread_group_cputime_account_exec_runtime( > + struct thread_group_cputime *tgtimes, > + unsigned long long ns) > +{ > + if (tgtimes->totals) { > + struct task_cputime *times; > + > + times = per_cpu_ptr(tgtimes->totals, get_cpu()); > + times->sum_exec_runtime += ns; > + put_cpu_no_resched(); > + } > +}
please uninline these functions. Ingo --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Frank Mayhar
, (Fri Sep 12, 9:54 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Andrew Morton
, (Fri Sep 12, 1:27 pm)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Ingo Molnar
, (Sun Sep 14, 8:06 am)
[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.
, Ingo Molnar
, (Sun Sep 14, 8:09 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Ingo Molnar
, (Sun Sep 14, 8:12 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Ingo Molnar
, (Sun Sep 14, 8:14 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.
, Ingo Molnar
, (Sun Sep 14, 11:41 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.
, Frank Mayhar
, (Mon Sep 15, 11:09 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Ingo Molnar
, (Tue Sep 16, 1:39 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Ingo Molnar
, (Tue Sep 16, 1:41 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Frank Mayhar
, (Wed Sep 17, 12:03 pm)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Roland McGrath
, (Wed Sep 17, 12:13 pm)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Frank Mayhar
, (Wed Sep 17, 1:12 pm)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Ingo Molnar
, (Thu Sep 18, 3:23 am)
Re: [PATCH 2.6.27-rc5 resubmit] Fix itimer/many thread hang.
, Frank Mayhar
, (Thu Sep 18, 6:50 am)
[PATCH 2.6.27-rc5 re-resubmit] Fix itimer/many thread hang.
, Frank Mayhar
, (Mon Sep 22, 1:22 pm)
Re: [PATCH 2.6.27-rc5 re-resubmit] Fix itimer/many thread ...
, Ingo Molnar
, (Tue Sep 23, 4:40 am)
[boot crash] Re: [PATCH 2.6.27-rc5 re-resubmit] Fix itimer ...
, Ingo Molnar
, (Tue Sep 23, 5:52 am)
Re: [PATCH 2.6.27-rc5 re-resubmit] Fix itimer/many thread ...
, Oleg Nesterov
, (Tue Sep 23, 6:59 am)
Re: [PATCH 2.6.27-rc5 re-resubmit] Fix itimer/many thread ...
, Frank Mayhar
, (Tue Sep 23, 9:09 am)
Re: [PATCH 2.6.27-rc5 re-resubmit] Fix itimer/many thread ...
, Frank Mayhar
, (Tue Sep 23, 3:56 pm)
[PATCH 2.6.27-rc5 incremental re-resubmit] Fix itimer/many ...
, Frank Mayhar
, (Wed Sep 24, 2:23 pm)
Re: [PATCH 2.6.27-rc5 incremental re-resubmit] Fix itimer/ ...
, Ingo Molnar
, (Sat Sep 27, 11:08 am)
Re: [PATCH 2.6.27-rc5 incremental re-resubmit] Fix itimer/ ...
, Ingo Molnar
, (Mon Sep 29, 11:33 pm)
Re: [PATCH 2.6.27-rc5 incremental re-resubmit] Fix itimer/ ...
, Frank Mayhar
, (Tue Sep 30, 9:36 am)
Re: [PATCH 2.6.27-rc5 incremental re-resubmit] Fix itimer/ ...
, Frank Mayhar
, (Wed Oct 1, 9:20 am)
Re: [PATCH 2.6.27-rc5 incremental re-resubmit] Fix itimer/ ...
, Ingo Molnar
, (Thu Oct 2, 2:43 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
Greg Kroah-Hartman
[PATCH 09/36] driver core: register_memory/unregister_memory clean ups and bugfix
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Daniel Schaffrath
Re: tcp bw in 2.6
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
Linux Kernel Mailing List
tracing: protect reader of cmdline output
openbsd-misc
:
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Community First Financial
Teacher A+ Loan
Jan Stary
Re: audio recording levels
Stas Miasnikou
Re: Another question: device naming convention
Andrej Elizarov
Re: Web Browsers
Colocation donated by:
Syndicate