diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2017-01-27 22:14:42 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2017-01-27 22:14:42 +0000 |
commit | 95839d3d256bb5e095c2feb736b73c930b90ff41 (patch) | |
tree | 18443f5861df92acaf216dee042374be94a1f2e6 /sys/kern | |
parent | f1f7f1cb29e025497080881406abacf7355df58c (diff) | |
download | src-95839d3d256bb5e095c2feb736b73c930b90ff41.tar.gz src-95839d3d256bb5e095c2feb736b73c930b90ff41.zip |
hwpmc: annotate pmc_hook and pmc_intr as __read_mostly
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=312902
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_pmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_pmc.c b/sys/kern/kern_pmc.c index 09dc6edbcffe..43943da72213 100644 --- a/sys/kern/kern_pmc.c +++ b/sys/kern/kern_pmc.c @@ -59,10 +59,10 @@ MALLOC_DEFINE(M_PMCHOOKS, "pmchooks", "Memory space for PMC hooks"); const int pmc_kernel_version = PMC_KERNEL_VERSION; /* 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 */ -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 */ volatile cpuset_t pmc_cpumask; |