aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAnju T Sudhakar <[email protected]>2019-04-16 15:18:28 +0530
committerMichael Ellerman <[email protected]>2019-05-03 02:54:59 +1000
commitdd50cf7cbc7bdd86483b797ac3d27b37d5aeeaa4 (patch)
treea43a33c69eeca0b89636d840f1cf4ba42270842f /net/switchdev/switchdev.c
parentd1720adff3783a2ba7c128e304a385d18962835b (diff)
powerpc/perf: Rearrange setting of ldbar for thread-imc
LDBAR holds the memory address allocated for each cpu. For thread-imc the mode bit (i.e bit 1) of LDBAR is set to accumulation. Currently, ldbar is loaded with per cpu memory address and mode set to accumulation at boot time. To enable trace-imc, the mode bit of ldbar should be set to 'trace'. So to accommodate trace-mode of IMC, reposition setting of ldbar for thread-imc to thread_imc_event_add(). Also reset ldbar at thread_imc_event_del(). Signed-off-by: Anju T Sudhakar <[email protected]> Reviewed-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions