Oops. The sec field of struct bintime is *not* a 32-bit type.

It's time_t, which is 64 bits on ia64.
This commit is contained in:
Marcel Moolenaar 2011-06-25 17:58:35 +00:00
parent 72b92b5ef7
commit 191eae8259

View File

@ -185,7 +185,7 @@ clock_configure(void *dummy)
et->et_frequency = itc_freq;
et->et_min_period.sec = 0;
et->et_min_period.frac = (0x8000000000000000ul / (u_long)(10*hz)) << 1;
et->et_max_period.sec = ~0ul; /* XXX unless itc_freq >= (1<<32) */
et->et_max_period.sec = 0xffffffff;
et->et_max_period.frac = ((0xfffffffeul << 32) / itc_freq) << 32;
et->et_start = ia64_clock_start;
et->et_stop = ia64_clock_stop;