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 */
ctrl'>
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2016-05-26 10:36:35 +0300
committerMark Brown <broonie@kernel.org>2016-05-30 16:24:36 +0100
commitbafcbfe429eb7e35db7dc73a39d40c04d2754f8e (patch)
treee27db61746dd03ba9d18a8bc66b11802d5cd7214 /Documentation
parent515511a7920c69aebf7f5fef0cb8e1df6767f34c (diff)
ASoC: tlv320aic31xx: Make the register values human readable
The datasheet uses decimal numbers for the register addresses, convert the register values from hexadecimal to decimal and introduce macro for the register definitions. This way it is easier to look up registers in the documentation. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')