[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 1/2 hurd] libirqhelp: Add library
From: |
Samuel Thibault |
Subject: |
Re: [PATCH v6 1/2 hurd] libirqhelp: Add library |
Date: |
Mon, 10 Jul 2023 21:47:45 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Damien Zammit, le lun. 10 juil. 2023 09:02:10 +0000, a ecrit:
> +void
> +irqhelp_wait_init(struct irq *irq)
> +{
> + if (!irq)
> + {
> + log_error("cannot wait on this irq to be ready\n");
> + return;
> + }
> +
> + sem_wait(&irq->sema);
> +}
So, is this wait really necessary? Why?
AIUI at worse when the server thread will actually start, it'll just
immediately have interrupt notifications to process.
Samuel
[PATCH v6 2/2 hurd] ddekit: Use libirqhelp for interrupt registration, Damien Zammit, 2023/07/10