.update is used to adjust the next poll time. Signed-off-by: Yang Zhang <yang.zhang...@gmail.com> Signed-off-by: Quan Xu <quan....@gmail.com> Cc: Jeremy Fitzhardinge <jer...@goop.org> Cc: Chris Wright <chr...@sous-sol.org> Cc: Alok Kataria <akata...@vmware.com> Cc: Rusty Russell <ru...@rustcorp.com.au> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Ingo Molnar <mi...@redhat.com> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: x...@kernel.org Cc: Peter Zijlstra <pet...@infradead.org> Cc: Andy Lutomirski <l...@kernel.org> Cc: "Kirill A. Shutemov" <kirill.shute...@linux.intel.com> Cc: Pan Xinhui <xinhui....@linux.vnet.ibm.com> Cc: Kees Cook <keesc...@chromium.org> Cc: virtualizat...@lists.linux-foundation.org Cc: linux-ker...@vger.kernel.org --- arch/x86/include/asm/paravirt.h | 5 +++++ arch/x86/include/asm/paravirt_types.h | 1 + arch/x86/kernel/paravirt.c | 1 + 3 files changed, 7 insertions(+)
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 6d46760..32e1c06 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -207,6 +207,11 @@ static inline void paravirt_idle_poll(void) PVOP_VCALL0(pv_idle_ops.poll); } +static inline void paravirt_idle_update_poll_duration(unsigned long duration) +{ + PVOP_VCALL1(pv_idle_ops.update, duration); +} + static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) { PVOP_VCALL2(pv_cpu_ops.alloc_ldt, ldt, entries); diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index cf45726..3b4f95a 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/paravirt_types.h @@ -326,6 +326,7 @@ struct pv_lock_ops { struct pv_idle_ops { void (*poll)(void); + void (*update)(unsigned long); } __no_randomize_layout; /* This contains all the paravirt structures: we get a convenient diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 1b5b247..a11b2c2 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -315,6 +315,7 @@ struct pv_time_ops pv_time_ops = { struct pv_idle_ops pv_idle_ops = { .poll = paravirt_nop, + .update = paravirt_nop, }; __visible struct pv_irq_ops pv_irq_ops = { -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html