Re: [PATCH 3/7] perf: kill perf_event_context_type

2014-02-27 Thread Mark Rutland
On Tue, Feb 25, 2014 at 11:38:48AM +, Peter Zijlstra wrote: > On Mon, Feb 10, 2014 at 05:44:20PM +, Mark Rutland wrote: > > Currently perf_event_context::type is used to determine whether a > > context is cpu-bound or task-bound. However perf_event_context::task can > > be used to

Re: [PATCH 3/7] perf: kill perf_event_context_type

2014-02-27 Thread Mark Rutland
On Tue, Feb 25, 2014 at 11:38:48AM +, Peter Zijlstra wrote: On Mon, Feb 10, 2014 at 05:44:20PM +, Mark Rutland wrote: Currently perf_event_context::type is used to determine whether a context is cpu-bound or task-bound. However perf_event_context::task can be used to determine this

Re: [PATCH 3/7] perf: kill perf_event_context_type

2014-02-25 Thread Peter Zijlstra
On Mon, Feb 10, 2014 at 05:44:20PM +, Mark Rutland wrote: > Currently perf_event_context::type is used to determine whether a > context is cpu-bound or task-bound. However perf_event_context::task can > be used to determine this just as cheaply, and requires no additional > initialisation. >

Re: [PATCH 3/7] perf: kill perf_event_context_type

2014-02-25 Thread Peter Zijlstra
On Mon, Feb 10, 2014 at 05:44:20PM +, Mark Rutland wrote: Currently perf_event_context::type is used to determine whether a context is cpu-bound or task-bound. However perf_event_context::task can be used to determine this just as cheaply, and requires no additional initialisation. This

[PATCH 3/7] perf: kill perf_event_context_type

2014-02-10 Thread Mark Rutland
Currently perf_event_context::type is used to determine whether a context is cpu-bound or task-bound. However perf_event_context::task can be used to determine this just as cheaply, and requires no additional initialisation. This patch removes perf_event_context::type, and modifies existing users

[PATCH 3/7] perf: kill perf_event_context_type

2014-02-10 Thread Mark Rutland
Currently perf_event_context::type is used to determine whether a context is cpu-bound or task-bound. However perf_event_context::task can be used to determine this just as cheaply, and requires no additional initialisation. This patch removes perf_event_context::type, and modifies existing users