From: Julien Grall Date: Tue, 12 Sep 2017 10:36:17 +0000 (+0100) Subject: xen/arm: Move arch/arm/vtimer.h to include/asm-arm/vtimer.h X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=082fc63f20e827eb0229d520b4ebf54140d9b21b;p=people%2Froyger%2Fxen.git xen/arm: Move arch/arm/vtimer.h to include/asm-arm/vtimer.h It will be necessary to include vtimer.h from subdirectory making the inclusion a bit awkward. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index 6512f01463..784ae392cf 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -33,8 +33,8 @@ #include #include #include +#include -#include "vtimer.h" #include "vuart.h" DEFINE_PER_CPU(struct vcpu *, curr_vcpu); diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 6b3dfd9bcf..6f32f700e5 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -50,9 +50,9 @@ #include #include #include +#include #include "decode.h" -#include "vtimer.h" /* The base of the stack must always be double-word aligned, which means * that both the kernel half of struct cpu_user_regs (which is pushed in diff --git a/xen/arch/arm/vtimer.h b/xen/arch/arm/vtimer.h deleted file mode 100644 index 5aaddc6f63..0000000000 --- a/xen/arch/arm/vtimer.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * xen/arch/arm/vtimer.h - * - * ARM Virtual Timer emulation support - * - * Ian Campbell - * Copyright (c) 2011 Citrix Systems. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#ifndef __ARCH_ARM_VTIMER_H__ -#define __ARCH_ARM_VTIMER_H__ - -extern int domain_vtimer_init(struct domain *d, - struct xen_arch_domainconfig *config); -extern int vcpu_vtimer_init(struct vcpu *v); -extern bool vtimer_emulate(struct cpu_user_regs *regs, union hsr hsr); -extern int virt_timer_save(struct vcpu *v); -extern int virt_timer_restore(struct vcpu *v); -extern void vcpu_timer_destroy(struct vcpu *v); - -#endif - -/* - * Local variables: - * mode: C - * c-file-style: "BSD" - * c-basic-offset: 4 - * indent-tabs-mode: nil - * End: - */ diff --git a/xen/include/asm-arm/vtimer.h b/xen/include/asm-arm/vtimer.h new file mode 100644 index 0000000000..5aaddc6f63 --- /dev/null +++ b/xen/include/asm-arm/vtimer.h @@ -0,0 +1,40 @@ +/* + * xen/arch/arm/vtimer.h + * + * ARM Virtual Timer emulation support + * + * Ian Campbell + * Copyright (c) 2011 Citrix Systems. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __ARCH_ARM_VTIMER_H__ +#define __ARCH_ARM_VTIMER_H__ + +extern int domain_vtimer_init(struct domain *d, + struct xen_arch_domainconfig *config); +extern int vcpu_vtimer_init(struct vcpu *v); +extern bool vtimer_emulate(struct cpu_user_regs *regs, union hsr hsr); +extern int virt_timer_save(struct vcpu *v); +extern int virt_timer_restore(struct vcpu *v); +extern void vcpu_timer_destroy(struct vcpu *v); + +#endif + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */