summaryrefslogtreecommitdiff
path: root/lib/cordic.c
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-11-05 02:55:57 (GMT)
committerIngo Molnar <mingo@kernel.org>2015-02-18 16:16:01 (GMT)
commit27ac905b8f88d28779b0661809286b5ba2817d37 (patch)
treefba88a53448a59d56df83895a087ebff5d032620 /lib/cordic.c
parentc796b205b88c775fd220c1a63390bac6a8cdda3f (diff)
downloadlinux-27ac905b8f88d28779b0661809286b5ba2817d37.tar.xz
perf/x86/intel: Reduce lbr_sel_map[] size
The index of lbr_sel_map is bit value of perf branch_sample_type. PERF_SAMPLE_BRANCH_MAX is 1024 at present, so each lbr_sel_map uses 4096 bytes. By using bit shift as index, we can reduce lbr_sel_map size to 40 bytes. This patch defines 'bit shift' for branch types, and use 'bit shift' to define lbr_sel_maps. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Signed-off-by: Kan Liang <kan.liang@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Stephane Eranian <eranian@google.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Vince Weaver <vincent.weaver@maine.edu> Cc: jolsa@redhat.com Cc: linux-api@vger.kernel.org Link: http://lkml.kernel.org/r/1415156173-10035-2-git-send-email-kan.liang@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/cordic.c')
0 files changed, 0 insertions, 0 deletions