Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/include/counter.h
Show All 30 Lines | |||||
#ifndef __MACHINE_COUNTER_H__ | #ifndef __MACHINE_COUNTER_H__ | ||||
#define __MACHINE_COUNTER_H__ | #define __MACHINE_COUNTER_H__ | ||||
#include <sys/pcpu.h> | #include <sys/pcpu.h> | ||||
#ifdef INVARIANTS | #ifdef INVARIANTS | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#endif | #endif | ||||
extern struct pcpu __pcpu[]; | |||||
#define EARLY_COUNTER &__pcpu[0].pc_early_dummy_counter | #define EARLY_COUNTER &__pcpu[0].pc_early_dummy_counter | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#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 | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |