freebsd-src/sys/dev/hwpmc
Mitchell Horne 01c35b677f hwpmc_mod.c: misc style cleanup
Everything else I found worthy of adjustment.

 - Order local variable declarations per style(9)
 - Make use of __unused annotations rather than cast to void
 - Remove unnecessary casts
 - Add (void) casts to PMC class methods where the return value is
   ignored
 - A couple instances of reordering statements for clarity
 - Prefer bool type where applicable
 - unsigned int -> u_int
 - Use uintmax_t/%j in printf calls
 - Formatting of comments

Reviewed by:	jkoshy
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40517
2023-06-14 13:34:20 -03:00
..
hwpmc_amd.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_amd.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_arm.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_arm64.c hwpmc: pass pmc pointer to more class methods 2023-05-06 14:49:19 -03:00
hwpmc_arm64.h arm64: Fix finding the pmc event ID 2021-04-08 07:52:21 +00:00
hwpmc_arm64_md.c hwpmc: use kstack_contains() 2023-05-06 14:49:19 -03:00
hwpmc_armv7.c hwpmc: pass pmc pointer to more class methods 2023-05-06 14:49:19 -03:00
hwpmc_armv7.h
hwpmc_cmn600.c hwpmc: pass pmc pointer to more class methods 2023-05-06 14:49:19 -03:00
hwpmc_cmn600.h Fix the SPDX-License-Identifier in CMN-600 files 2022-12-22 10:36:18 +00:00
hwpmc_core.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_core.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_dmc620.c hwpmc: pass pmc pointer to more class methods 2023-05-06 14:49:19 -03:00
hwpmc_dmc620.h Fix the SPDX-License-Identifier in DMC-620 files 2022-12-22 10:36:18 +00:00
hwpmc_e500.c hwpmc: pass pmc pointer to more class methods 2023-05-06 14:49:19 -03:00
hwpmc_intel.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_logging.c pmc: Rework PROCEXEC event to support PIEs 2023-05-31 00:20:36 +01:00
hwpmc_mod.c hwpmc_mod.c: misc style cleanup 2023-06-14 13:34:20 -03:00
hwpmc_mpc7xxx.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_power8.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_powerpc.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_powerpc.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_ppc970.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_riscv.h
hwpmc_soft.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_soft.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_tsc.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_tsc.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_uncore.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_uncore.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hwpmc_x86.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pmc_events.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pmu_dmc620.c hwpmc: Don't wrap entire files in #ifdef DEV_ACPI. 2023-03-01 10:31:53 -08:00
pmu_dmc620_reg.h Fix the SPDX-License-Identifier in DMC-620 files 2022-12-22 10:36:18 +00:00