]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/nospec.h
prctl: Add speculation control prctls
[mirror_ubuntu-artful-kernel.git] / include / linux / nospec.h
CommitLineData
f12a33c4
TG
1// SPDX-License-Identifier: GPL-2.0
2// Copyright(c) 2018 Linus Torvalds. All rights reserved.
3// Copyright(c) 2018 Alexei Starovoitov. All rights reserved.
4// Copyright(c) 2018 Intel Corporation. All rights reserved.
5
6#ifndef _LINUX_NOSPEC_H
7#define _LINUX_NOSPEC_H
8#include <asm/barrier.h>
9
10/* Speculation control prctl */
11int arch_prctl_spec_ctrl_get(unsigned long which);
12int arch_prctl_spec_ctrl_set(unsigned long which, unsigned long ctrl);
13
14#endif /* _LINUX_NOSPEC_H */