diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2014-11-04 21:55:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-02-18 17:16:03 +0100 |
commit | 2a0ad3b326a9024ba86dca4028499d31fa0c6c4d (patch) | |
tree | 3c710a73ad62005b1e60ebe9f32a8235604de43e /kernel/cgroup_freezer.c | |
parent | ba532500c5651a4be4108acc64ed99a95cb005b3 (diff) | |
download | talos-obmc-linux-2a0ad3b326a9024ba86dca4028499d31fa0c6c4d.tar.gz talos-obmc-linux-2a0ad3b326a9024ba86dca4028499d31fa0c6c4d.zip |
perf/x86/intel: Use context switch callback to flush LBR stack
Previous commit introduces context switch callback, its function
overlaps with the flush branch stack callback. So we can use the
context switch callback to flush LBR stack.
This patch adds code that uses the flush branch callback to
flush the LBR stack when task is being scheduled in. The callback
is enabled only when there are events use the LBR hardware. This
patch also removes all old flush branch stack code.
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>
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: eranian@google.com
Cc: jolsa@redhat.com
Link: http://lkml.kernel.org/r/1415156173-10035-4-git-send-email-kan.liang@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/cgroup_freezer.c')
0 files changed, 0 insertions, 0 deletions