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 */
t name='dt' onchange='this.form.submit();'>
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-11-21 14:25:49 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-11-21 14:25:49 +0100
commit9713adc2a1a5488f4889c657a0c0ce0c16056d3c (patch)
tree2fad141a9352c0bd5430651fcc52087063fd5541 /Documentation
parent2c85025c75dfe7ddc2bb33363a998dad59383f94 (diff)
Revert "ACPI: Execute _PTS before system reboot"
Revert commit 2c85025c75df (ACPI: Execute _PTS before system reboot) as it is reported to cause poweroff and reboot to hang on Dell Latitude E7250. Link: https://bugzilla.kernel.org/show_bug.cgi?id=187061 Reported-by: Gianpaolo <gianpaoloc@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation')