Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/counter.h
Show All 27 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef __MACHINE_COUNTER_H__ | #ifndef __MACHINE_COUNTER_H__ | ||||
#define __MACHINE_COUNTER_H__ | #define __MACHINE_COUNTER_H__ | ||||
#include <sys/pcpu.h> | #include <sys/pcpu.h> | ||||
extern struct pcpu __pcpu[]; | extern struct pcpu *__pcpu; | ||||
extern struct pcpu temp_bsp_pcpu; | |||||
#define EARLY_COUNTER &__pcpu[0].pc_early_dummy_counter | #define EARLY_COUNTER &temp_bsp_pcpu.pc_early_dummy_counter | ||||
#define counter_enter() do {} while (0) | #define counter_enter() do {} while (0) | ||||
#define counter_exit() do {} while (0) | #define counter_exit() do {} while (0) | ||||
#ifdef IN_SUBR_COUNTER_C | #ifdef IN_SUBR_COUNTER_C | ||||
static inline uint64_t | static inline uint64_t | ||||
counter_u64_read_one(uint64_t *p, int cpu) | counter_u64_read_one(uint64_t *p, int cpu) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |