[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] xen/arm: vtimer: Change the return value to void for virt_timer_[save|restore]
commit 7f03e7e05f4f80a41d28706c7567154dce257ce3 Author: Baodong Chen <chenbaodong@xxxxxxxxxx> AuthorDate: Mon Jun 10 13:07:54 2019 +0800 Commit: Julien Grall <julien.grall@xxxxxxx> CommitDate: Tue Jun 11 14:17:46 2019 +0100 xen/arm: vtimer: Change the return value to void for virt_timer_[save|restore] virt_timer_{save, return} always return 0 and none of the caller actually check it. So change the return type to void. Signed-off-by: Baodong Chen <chenbaodong@xxxxxxxxxx> [julien: Rework the commit message] Acked-by: Julien Grall <julien.grall@xxxxxxx> --- xen/arch/arm/vtimer.c | 6 ++---- xen/include/asm-arm/vtimer.h | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/vtimer.c b/xen/arch/arm/vtimer.c index c99dd237d1..e6aebdac9e 100644 --- a/xen/arch/arm/vtimer.c +++ b/xen/arch/arm/vtimer.c @@ -136,7 +136,7 @@ void vcpu_timer_destroy(struct vcpu *v) kill_timer(&v->arch.phys_timer.timer); } -int virt_timer_save(struct vcpu *v) +void virt_timer_save(struct vcpu *v) { ASSERT(!is_idle_vcpu(v)); @@ -149,10 +149,9 @@ int virt_timer_save(struct vcpu *v) set_timer(&v->arch.virt_timer.timer, ticks_to_ns(v->arch.virt_timer.cval + v->domain->arch.virt_timer_base.offset - boot_count)); } - return 0; } -int virt_timer_restore(struct vcpu *v) +void virt_timer_restore(struct vcpu *v) { ASSERT(!is_idle_vcpu(v)); @@ -163,7 +162,6 @@ int virt_timer_restore(struct vcpu *v) WRITE_SYSREG64(v->domain->arch.virt_timer_base.offset, CNTVOFF_EL2); WRITE_SYSREG64(v->arch.virt_timer.cval, CNTV_CVAL_EL0); WRITE_SYSREG32(v->arch.virt_timer.ctl, CNTV_CTL_EL0); - return 0; } static bool vtimer_cntp_ctl(struct cpu_user_regs *regs, uint32_t *r, bool read) diff --git a/xen/include/asm-arm/vtimer.h b/xen/include/asm-arm/vtimer.h index 91d88b377f..9d4fb4c6e8 100644 --- a/xen/include/asm-arm/vtimer.h +++ b/xen/include/asm-arm/vtimer.h @@ -24,8 +24,8 @@ 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 virt_timer_save(struct vcpu *v); +extern void virt_timer_restore(struct vcpu *v); extern void vcpu_timer_destroy(struct vcpu *v); void vtimer_update_irqs(struct vcpu *v); -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |