summaryrefslogtreecommitdiff
path: root/lockme.h
blob: 7cce97bb55330fbe1e755f11865836e25d8ddbe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LOCKME_H
#define LOCKME_H

#include <sys/mman.h>

#include "die.h"

static inline void xlockme(void)
{
	if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0)
		panic("Cannot lock pages!\n");
}

static inline void xunlockme(void)
{
	munlockall();
}

#endif /* LOCKME_H */
>mode:
authorAxel Lin <axel.lin@ingics.com>2016-04-29 13:38:41 +0800
committerMark Brown <broonie@kernel.org>2016-04-29 18:16:25 +0100
commit83fefd2d5bec94de765305d44633c42371360a2a (patch)
treee8b861353532513fd830fb0810f33ffd29b73f05 /Documentation/devicetree/bindings
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
spi: st-ssc4: Allow compile test build
There is no build dependency for this driver, so enable COMPILE_TEST to get better build coverage. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings')