diff options
author | Jaswinder Singh Rajput <[email protected]> | 2009-06-27 23:49:09 +0530 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-06-28 15:22:47 +0200 |
commit | c3043569dc8fbe9228b76174f15d1a7152c48a20 (patch) | |
tree | c8a54134d28114665ef1a8ea5d9e6a12bedbef98 /net/lapb/lapb_subr.c | |
parent | 6e750a8fc009fd0ae98704525d1d8e80d60e8cc9 (diff) |
perf stat: Micro-optimize the code: memcpy is only required if no event is selected and !null_run
Set attrs and nr_counters if no event is selected and !null_run.
Setting of attrs should depend on number of counters,
so we need to memcpy only for sizeof(default_attrs)
Also set nr_counters as ARRAY_SIZE(default_attrs) in place of
hardcoded value.
Signed-off-by: Jaswinder Singh Rajput <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions