Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166621534
D39912.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D39912.diff
View Options
diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c
--- a/sys/dev/hwpmc/hwpmc_amd.c
+++ b/sys/dev/hwpmc/hwpmc_amd.c
@@ -1175,8 +1175,6 @@
pcd->pcd_stop_pmc = amd_stop_pmc;
pcd->pcd_write_pmc = amd_write_pmc;
- pmc_mdep->pmd_pcpu_init = NULL;
- pmc_mdep->pmd_pcpu_fini = NULL;
pmc_mdep->pmd_intr = amd_intr;
pmc_mdep->pmd_switch_in = amd_switch_in;
pmc_mdep->pmd_switch_out = amd_switch_out;
diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c
--- a/sys/dev/hwpmc/hwpmc_core.c
+++ b/sys/dev/hwpmc/hwpmc_core.c
@@ -1294,9 +1294,6 @@
else
md->pmd_intr = core_intr;
- md->pmd_pcpu_fini = NULL;
- md->pmd_pcpu_init = NULL;
-
return (0);
}
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
@@ -5490,8 +5490,6 @@
md->pmd_cputype = PMC_CPU_GENERIC;
- md->pmd_pcpu_init = NULL;
- md->pmd_pcpu_fini = NULL;
md->pmd_switch_in = generic_switch_in;
md->pmd_switch_out = generic_switch_out;
@@ -5634,8 +5632,6 @@
pmc_pcpu[cpu] = malloc(sizeof(struct pmc_cpu) +
md->pmd_npmc * sizeof(struct pmc_hw *), M_PMC,
M_WAITOK|M_ZERO);
- if (md->pmd_pcpu_init)
- error = md->pmd_pcpu_init(md, cpu);
for (n = 0; error == 0 && n < md->pmd_nclass; n++)
if (md->pmd_classdep[n].pcd_num > 0)
error = md->pmd_classdep[n].pcd_pcpu_init(md,
@@ -5879,8 +5875,6 @@
if (md->pmd_classdep[c].pcd_num > 0)
md->pmd_classdep[c].pcd_pcpu_fini(md,
cpu);
- if (md->pmd_pcpu_fini)
- md->pmd_pcpu_fini(md, cpu);
}
if (md->pmd_cputype == PMC_CPU_GENERIC)
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -1043,10 +1043,6 @@
* Machine dependent methods.
*/
- /* per-cpu initialization and finalization */
- int (*pmd_pcpu_init)(struct pmc_mdep *_md, int _cpu);
- int (*pmd_pcpu_fini)(struct pmc_mdep *_md, int _cpu);
-
/* thread context switch in/out */
int (*pmd_switch_in)(struct pmc_cpu *_p, struct pmc_process *_pp);
int (*pmd_switch_out)(struct pmc_cpu *_p, struct pmc_process *_pp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 15, 10:37 PM (8 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36682803
Default Alt Text
D39912.diff (2 KB)
Attached To
Mode
D39912: hwpmc: remove pmd_pcpu_{init,fini} callbacks
Attached
Detach File
Event Timeline
Log In to Comment