xref: /openbsd/sys/dev/pci/drm/include/linux/processor.h (revision 0f557061)
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 
12 static inline void
cpu_relax(void)13 cpu_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
27