From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCH 2/3] arm/xen: add stub is_preemptible_hypercall() Date: Tue, 11 Feb 2014 19:19:11 +0000 Message-ID: <1392146352-16381-3-git-send-email-david.vrabel@citrix.com> References: <1392146352-16381-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392146352-16381-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Andrew Cooper , Boris Ostrovsky , Stefano Stabellini , David Vrabel List-Id: xen-devel@lists.xenproject.org From: David Vrabel is_preemptible_hypercall() may be called from an upcall to determine if the interrupted task was in a preemptible hypercall. Provide a stub implementation that always returns false. Signed-off-by: David Vrabel --- arch/arm/include/asm/xen/hypercall.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/xen/hypercall.h b/arch/arm/include/asm/xen/hypercall.h index 7704e28..4b988fe 100644 --- a/arch/arm/include/asm/xen/hypercall.h +++ b/arch/arm/include/asm/xen/hypercall.h @@ -68,4 +68,12 @@ HYPERVISOR_multicall(void *call_list, int nr_calls) { BUG(); } + +#ifndef CONFIG_PREEMPT +static inline bool is_preemptible_hypercall(struct pt_regs *regs) +{ + return false; +} +#endif + #endif /* _ASM_ARM_XEN_HYPERCALL_H */ -- 1.7.2.5