[PATCH 2/4] um: add a pseudo RTC
Johannes Berg
johannes at sipsolutions.net
Sat Nov 21 04:38:31 EST 2020
On Fri, 2020-11-20 at 22:29 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg at intel.com>
>
> This isn't quite the right thing, and especially doesn't
> actually cause wakeups due to CLOCK_REALTIME (if that
> ends up changing due to the host), but it will let us
> test suspend/resume.
>
> +++ b/arch/um/include/asm/irq.h
> @@ -18,10 +18,11 @@
> #define XTERM_IRQ 13
> #define RANDOM_IRQ 14
> #define VIRTIO_IRQ 15
> +#define RTC_IRQ 16
>
> #ifdef CONFIG_UML_NET_VECTOR
I missed updating the #else branch of this, so this is wrong.
But since I'll want to have some virtio devices wakeup-enabled and
others not, I think I'm going to rework our IRQ allocation entirely, and
just reserve some maximum number (say 64?), and let virtio and vector
networking dynamically allocate them instead of having to keep track of
all the hard-coded ones all the time ...
johannes
More information about the linux-um
mailing list