File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ static struct clock_event_device pit_ce = {
93
93
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT ,
94
94
.set_mode = init_pit_timer ,
95
95
.set_next_event = pit_next_event ,
96
- .shift = 32 ,
97
96
.irq = 0 ,
98
97
};
99
98
@@ -108,11 +107,8 @@ void __init setup_pit_timer(void)
108
107
* IO_APIC has been initialized.
109
108
*/
110
109
pit_ce .cpumask = cpumask_of (smp_processor_id ());
111
- pit_ce .mult = div_sc (CLOCK_TICK_RATE , NSEC_PER_SEC , pit_ce .shift );
112
- pit_ce .max_delta_ns = clockevent_delta2ns (0x7FFF , & pit_ce );
113
- pit_ce .min_delta_ns = clockevent_delta2ns (0xF , & pit_ce );
114
110
115
- clockevents_register_device (& pit_ce );
111
+ clockevents_config_and_register (& pit_ce , CLOCK_TICK_RATE , 0xF , 0x7FFF );
116
112
global_clock_event = & pit_ce ;
117
113
}
118
114
You can’t perform that action at this time.
0 commit comments