Changeset 1025d28 in mainline for kernel/arch/ia64/src/drivers/it.c
- Timestamp:
- 2008-11-13T07:54:48Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37e518b
- Parents:
- aa8d0f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/drivers/it.c
raa8d0f7 r1025d28 47 47 #define IT_SERVICE_CLOCKS 64 48 48 49 #define FREQ_NUMERATOR_SHIFT 32 50 #define FREQ_NUMERATOR_MASK 0xffffffff00000000LL 51 52 #define FREQ_DENOMINATOR_SHIFT 0 53 #define FREQ_DENOMINATOR_MASK 0xffffffffLL 54 55 56 uint64_t it_delta; 57 58 49 59 static irq_t it_irq; 50 60 … … 65 75 it_irq.handler = it_interrupt; 66 76 irq_register(&it_irq); 77 78 uint64_t base_freq; 79 base_freq = ((bootinfo->freq_scale) & FREQ_NUMERATOR_MASK) >> FREQ_NUMERATOR_SHIFT; 80 base_freq *= bootinfo->sys_freq; 81 base_freq /= ((bootinfo->freq_scale) & FREQ_DENOMINATOR_MASK) >> FREQ_DENOMINATOR_SHIFT; 82 83 it_delta = base_freq /HZ; 84 67 85 } 68 86
Note:
See TracChangeset
for help on using the changeset viewer.