MCPcopy Create free account
hub / github.com/F-Stack/f-stack / native_lapic_reenable_pmc

Function native_lapic_reenable_pmc

freebsd/x86/x86/local_apic.c:879–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877 NULL);
878
879static void
880native_lapic_reenable_pmc(void)
881{
882#ifdef HWPMC_HOOKS
883 uint32_t value;
884
885 value = lapic_read32(LAPIC_LVT_PCINT);
886 value &= ~APIC_LVT_M;
887 lapic_write32(LAPIC_LVT_PCINT, value);
888#endif
889}
890
891#ifdef HWPMC_HOOKS
892static void

Callers

nothing calls this directly

Calls 2

lapic_read32Function · 0.85
lapic_write32Function · 0.85

Tested by

no test coverage detected