hwpmc: annotate pmc_hook and pmc_intr as __read_mostly
MFC after: 1 month
This commit is contained in:
parent
f1f7f1cb29
commit
95839d3d25
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=312902
@ -59,10 +59,10 @@ MALLOC_DEFINE(M_PMCHOOKS, "pmchooks", "Memory space for PMC hooks");
|
|||||||
const int pmc_kernel_version = PMC_KERNEL_VERSION;
|
const int pmc_kernel_version = PMC_KERNEL_VERSION;
|
||||||
|
|
||||||
/* Hook variable. */
|
/* Hook variable. */
|
||||||
int (*pmc_hook)(struct thread *td, int function, void *arg) = NULL;
|
int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL;
|
||||||
|
|
||||||
/* Interrupt handler */
|
/* Interrupt handler */
|
||||||
int (*pmc_intr)(int cpu, struct trapframe *tf) = NULL;
|
int __read_mostly (*pmc_intr)(int cpu, struct trapframe *tf) = NULL;
|
||||||
|
|
||||||
/* Bitmask of CPUs requiring servicing at hardclock time */
|
/* Bitmask of CPUs requiring servicing at hardclock time */
|
||||||
volatile cpuset_t pmc_cpumask;
|
volatile cpuset_t pmc_cpumask;
|
||||||
|
Loading…
Reference in New Issue
Block a user