lkml.org 
[lkml]   [2006]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: perfmon2 context: thread_struct vs. task_struct?
Andrew,

On Wed, Mar 22, 2006 at 06:37:36PM -0800, Andrew Morton wrote:
> > Would it make sense to move the pointer to the perfmon2
> > context into the task_struct?
>
> I'd say so, yes. Especialy if the struct is the same on all architectures,
> is referred to from non-arch-specific code and is absent if
> CONFIG_PERFMON=n.
>
Yes the structure is the same for all architectures. It looks like
task_struct already has #ifdefs in it. So I could do:

struct task_struct {
....
#ifdef CONFIG_PERFMON
struct pfm_context *pfm_context;
#endif
...
};

--
-Stephane
-
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/

\
 
 \ /
  Last update: 2006-03-23 06:48    [W:0.056 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site