jcs's openbsd hax
openbsd
1/* Public domain. */
2
3#ifndef _LINUX_PROCESSOR_H
4#define _LINUX_PROCESSOR_H
5
6#include <sys/systm.h>
7/* sparc64 cpu.h needs time.h and siginfo.h (indirect via param.h) */
8#include <sys/param.h>
9#include <machine/cpu.h>
10#include <linux/jiffies.h>
11
12static inline void
13cpu_relax(void)
14{
15 CPU_BUSY_CYCLE();
16 if (cold) {
17 delay(tick);
18 jiffies++;
19 }
20}
21
22#ifndef CACHELINESIZE
23#define CACHELINESIZE 64
24#endif
25
26#endif