Re: Timer patch V8

From: Alex Williamson <alex.williamson_at_hp.com>
Date: 2004-09-10 01:01:11
On Wed, 2004-09-08 at 16:23 -0700, Christoph Lameter wrote:
> Sorry. I was too superficial when looking at this issue. The following
> patch makes the hpet driver build again but I do not have a machine here
> that would allow me to test this. Could you verify that this works and get
> back to me?
> 

   It builds and boots, so a definite improvement.  I'm not sure how to
check if the hpet is being used though.  Thanks,

	Alex


> Index: linux-2.6.9-rc1/drivers/char/hpet.c
> ===================================================================
> --- linux-2.6.9-rc1.orig/drivers/char/hpet.c	2004-09-07 18:37:00.000000000 -0700
> +++ linux-2.6.9-rc1/drivers/char/hpet.c	2004-09-08 16:17:57.000000000 -0700
> @@ -664,8 +664,7 @@
> 
>  static struct time_interpolator hpet_interpolator = {
>  	.source = TIME_SOURCE_MMIO64,
> -	.shift = 10,
> -	.addr = MC
> +	.shift = 10
>  };
> 
>  #endif
> @@ -953,11 +952,10 @@
>  			struct hpet *hpet;
> 
>  			hpet = hpets->hp_hpet;
> -			hpet_cycles_per_sec = hpet_time_div(hpets->hp_period);
> -			hpet_interpolator.frequency = hpet_cycles_per_sec;
> -			hpet_interpolator.drift = hpet_cycles_per_sec *
> +			hpet_interpolator.addr = &hpets->hp_hpet->hpet_mc;
> +			hpet_interpolator.frequency = hpet_time_div(hpets->hp_period);
> +			hpet_interpolator.drift = hpet_interpolator.frequency *
>  			    HPET_DRIFT / 1000000;
> -			hpet_nsecs_per_cycle = 1000000000 / hpet_cycles_per_sec;
>  			register_time_interpolator(&hpet_interpolator);
>  		}
>  #endif
> 
-- 
Alex Williamson                             HP Linux & Open Source Lab

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Sep 9 11:03:45 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:30 EST