Page MenuHomeFreeBSD

D60141.1794608036.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D60141.1794608036.diff

diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -248,7 +248,6 @@
static void pmc_process_allproc(struct pmc *pm);
static void pmc_process_csw_in(struct thread *td);
static void pmc_process_csw_out(struct thread *td);
-static void pmc_process_csw_out_prepare(int cpu);
static void pmc_process_csw_start_all(int cpu);
static void pmc_process_csw_stop_all(int cpu);
static void pmc_process_exec(struct thread *td,
@@ -1449,8 +1448,6 @@
struct pmc_classdep *pcd;
u_int class;
- pmc_process_csw_out_prepare(cpu);
-
for (class = 0; class < md->pmd_nclass; class++) {
pcd = &md->pmd_classdep[class];
if (pcd->pcd_stop_all != NULL)
@@ -1458,32 +1455,6 @@
}
}
-/*
- * Mark virtual PMCs stopped, before you close hardware gates.
- */
-static void
-pmc_process_csw_out_prepare(int cpu)
-{
- struct pmc *pm;
- struct pmc_classdep *pcd;
- u_int class;
- int adjri;
-
- for (class = 0; class < md->pmd_nclass; class++) {
- pcd = &md->pmd_classdep[class];
- if (pcd->pcd_stop_all == NULL)
- continue;
- for (adjri = 0; adjri < pcd->pcd_num; adjri++) {
- pm = NULL;
- (void)pcd->pcd_get_config(cpu, adjri, &pm);
- if (pm == NULL ||
- !PMC_IS_VIRTUAL_MODE(PMC_TO_MODE(pm)))
- continue;
- pm->pm_pcpu_state[cpu].pps_cpustate = 0;
- }
- }
-}
-
/*
* Thread context switch IN.
*/

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 13, 10:13 PM (5 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40082312
Default Alt Text
D60141.1794608036.diff (1 KB)

Event Timeline