summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/processor.h
blob: 9386a526e3cf944cc6fc39d9863a1a51e329c65b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Public domain. */

#ifndef _LINUX_PROCESSOR_H
#define _LINUX_PROCESSOR_H

#include <sys/systm.h>
/* sparc64 cpu.h needs time.h and siginfo.h (indirect via param.h) */
#include <sys/param.h>
#include <machine/cpu.h>
#include <linux/jiffies.h>

static inline void
cpu_relax(void)
{
	CPU_BUSY_CYCLE();
	if (cold) {
		delay(tick);
		jiffies++;
	}
}

#ifndef CACHELINESIZE
#define CACHELINESIZE 64
#endif

#endif