mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 02:29:23 +00:00
compel: Move cpu interface to compel
We will need it when parasite engine will be creating signal frames. Export appropriate headers and use it in CRIU by linking with libcompel.a. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
1a30731b1f
commit
aabb45bece
29 changed files with 365 additions and 218 deletions
14
compel/include/uapi/cpu.h
Normal file
14
compel/include/uapi/cpu.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef UAPI_COMPEL_CPU_H__
|
||||
#define UAPI_COMPEL_CPU_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <compel/asm/cpu.h>
|
||||
|
||||
extern void compel_set_cpu_cap(compel_cpuinfo_t *info, unsigned int feature);
|
||||
extern void compel_clear_cpu_cap(compel_cpuinfo_t *info, unsigned int feature);
|
||||
extern int compel_test_cpu_cap(compel_cpuinfo_t *info, unsigned int feature);
|
||||
extern int compel_cpuid(compel_cpuinfo_t *info);
|
||||
extern bool cpu_has_feature(unsigned int feature);
|
||||
|
||||
#endif /* UAPI_COMPEL_CPU_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue