perfctr_stop: add flags to no 'disable_intens'

The original fujitsu code added a whole new ihk_mc_perfctr_stop_first
function, duplicating a lot of code - add a flag to existing function
instead.

Change-Id: Ic9ce0236d68f967ff72cf88e5d9f1bda5c98aa1b
Fujitsu: POSTK_DEBUG_ARCH_DEP_107
This commit is contained in:
Dominique Martinet
2019-01-29 15:10:55 +09:00
committed by Dominique Martinet
parent d0d99adfb3
commit 34a995d290
5 changed files with 32 additions and 25 deletions

View File

@@ -729,7 +729,7 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
break;
}
ret = ihk_mc_perfctr_stop(1 << pcd->target_cntr);
ret = ihk_mc_perfctr_stop(1 << pcd->target_cntr, 0);
if (ret != 0) {
break;
}
@@ -742,7 +742,8 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
break;
case PERF_CTRL_DISABLE:
ret = ihk_mc_perfctr_stop(pcd->target_cntr_mask);
ret = ihk_mc_perfctr_stop(pcd->target_cntr_mask,
IHK_MC_PERFCTR_DISABLE_INTERRUPT);
break;
case PERF_CTRL_GET: