]> xenbits.xensource.com Git - people/aperard/mini-os.git/commit
Mini-OS: cleanup hypervisor.c master
authorJuergen Gross <jgross@suse.com>
Wed, 13 Dec 2023 09:50:17 +0000 (10:50 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Dec 2023 09:50:17 +0000 (10:50 +0100)
commit79839db5e40b4fa56ebbc8f6d17049d4aaf32a8d
treead87a533d7f88f2c6171703fc94aecd3eafd72c3
parent3c637a6af245cb2802cd8ec92c918b48cd391fd3
Mini-OS: cleanup hypervisor.c

Do the following cleanups in hypervisor.c:

- Let hypervisor.c conform to the coding style.
- Drop the bogus "inline" attributes of exported functions.
- Replace a always zero cpu variable with smp_processor_id() as
  elsewhere in the code.
- Replace "if () BUG()" with BUG_ON() in case the condition has no
  side effects.
- Drop the unused cpu parameter from the active_evtchns() macro.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
hypervisor.c