]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
driver/char: Drop run_in_exception_handler() ifdefary
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Dec 2023 08:42:01 +0000 (08:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 Dec 2023 19:15:30 +0000 (19:15 +0000)
Since commit 60a9b0715055 ("xen: introduce CONFIG_GENERIC_BUG_FRAME"), the new
common bug.h provides an implementation of run_in_exception_handler() in all
cases, making the #else here dead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/drivers/char/ehci-dbgp.c
xen/drivers/char/ns16550.c

index 0f5b41899ef5ed295d179c56d5f2001186f109e7..bbf4e51c026364e3af2e6fdbfa0950cefa87b2d6 100644 (file)
@@ -1293,11 +1293,7 @@ static void cf_check _ehci_dbgp_poll(struct cpu_user_regs *regs)
 static void cf_check ehci_dbgp_poll(void *data)
 {
     poll_port = data;
-#ifdef run_in_exception_handler
     run_in_exception_handler(_ehci_dbgp_poll);
-#else
-    _ehci_dbgp_poll(guest_cpu_user_regs());
-#endif
 }
 
 static bool ehci_dbgp_setup_preirq(struct ehci_dbgp *dbgp)
index c8a51ed660082359c7237a772ba1773e5ca8d097..29691e8d3ae6761a1f56da831e9917479c904fe3 100644 (file)
@@ -233,11 +233,7 @@ out:
 static void cf_check ns16550_poll(void *data)
 {
     this_cpu(poll_port) = data;
-#ifdef run_in_exception_handler
     run_in_exception_handler(__ns16550_poll);
-#else
-    __ns16550_poll(guest_cpu_user_regs());
-#endif
 }
 
 static int cf_check ns16550_tx_ready(struct serial_port *port)