bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2 gnumach] smp: Use HPET instead of unreliable pit one-shot


From: Samuel Thibault
Subject: Re: [PATCH 2/2 gnumach] smp: Use HPET instead of unreliable pit one-shot
Date: Fri, 2 Feb 2024 20:32:08 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Damien Zammit, le ven. 02 févr. 2024 06:40:04 +0000, a ecrit:
> ---
>  i386/i386/smp.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/i386/i386/smp.c b/i386/i386/smp.c
> index fb43ecb6..87f59913 100644
> --- a/i386/i386/smp.c
> +++ b/i386/i386/smp.c
> @@ -101,7 +100,7 @@ void smp_startup_cpu(unsigned apic_id, unsigned vector)
>      } while(lapic->icr_low.delivery_status == SEND_PENDING);
>  
>      /* Wait 10 msec */
> -    pit_mdelay(10);
> +    hpet_mdelay(10);
>  
>      /* Clear APIC errors */
>      lapic->error_status.r = 0;

We'd need to also fallback to pit_mdelay in case there is no HPET?

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]