mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
compel: add compel_ prefix to cpu_has_feature
travis-ci: success for compel uapi cleanups Signed-off-by: Kir Kolyshkin <kir@openvz.org> Reviewed-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
adaa7979be
commit
c18aa3e7fb
8 changed files with 18 additions and 18 deletions
|
|
@ -18,7 +18,7 @@ void compel_clear_cpu_cap(compel_cpuinfo_t *info, unsigned int feature) { }
|
|||
int compel_test_cpu_cap(compel_cpuinfo_t *info, unsigned int feature) { return 0; }
|
||||
int compel_cpuid(compel_cpuinfo_t *info) { return 0; }
|
||||
|
||||
bool cpu_has_feature(unsigned int feature)
|
||||
bool compel_cpu_has_feature(unsigned int feature)
|
||||
{
|
||||
if (!rt_info_done) {
|
||||
compel_cpuid(&rt_info);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ void compel_clear_cpu_cap(compel_cpuinfo_t *info, unsigned int feature) { }
|
|||
int compel_test_cpu_cap(compel_cpuinfo_t *info, unsigned int feature) { return 0; }
|
||||
int compel_cpuid(compel_cpuinfo_t *info) { return 0; }
|
||||
|
||||
bool cpu_has_feature(unsigned int feature)
|
||||
bool compel_cpu_has_feature(unsigned int feature)
|
||||
{
|
||||
if (!rt_info_done) {
|
||||
compel_cpuid(&rt_info);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ int compel_cpuid(compel_cpuinfo_t *info)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool cpu_has_feature(unsigned int feature)
|
||||
bool compel_cpu_has_feature(unsigned int feature)
|
||||
{
|
||||
if (!rt_info_done) {
|
||||
compel_cpuid(&rt_info);
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ int compel_cpuid(compel_cpuinfo_t *c)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool cpu_has_feature(unsigned int feature)
|
||||
bool compel_cpu_has_feature(unsigned int feature)
|
||||
{
|
||||
if (!rt_info_done) {
|
||||
compel_cpuid(&rt_info);
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, save_regs_t save, void *ar
|
|||
}
|
||||
}
|
||||
|
||||
if (!cpu_has_feature(X86_FEATURE_FPU))
|
||||
if (!compel_cpu_has_feature(X86_FEATURE_FPU))
|
||||
goto out;
|
||||
|
||||
/*
|
||||
|
|
@ -167,7 +167,7 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, save_regs_t save, void *ar
|
|||
|
||||
pr_info("Dumping GP/FPU registers for %d\n", pid);
|
||||
|
||||
if (cpu_has_feature(X86_FEATURE_OSXSAVE)) {
|
||||
if (compel_cpu_has_feature(X86_FEATURE_OSXSAVE)) {
|
||||
iov.iov_base = &xsave;
|
||||
iov.iov_len = sizeof(xsave);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
#include <compel/asm/cpu.h>
|
||||
|
||||
extern int compel_cpuid(compel_cpuinfo_t *info);
|
||||
extern bool cpu_has_feature(unsigned int feature);
|
||||
extern bool compel_cpu_has_feature(unsigned int feature);
|
||||
|
||||
#endif /* UAPI_COMPEL_CPU_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue