Source
36
36
.shift = 0,
37
37
};
38
38
39
39
static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced)
40
40
{
41
41
numachip2_write64_lcsr(NUMACHIP2_TIMER_DEADLINE + numachip2_timer(),
42
42
delta);
43
43
return 0;
44
44
}
45
45
46
-
static struct clock_event_device numachip2_clockevent = {
46
+
static const struct clock_event_device numachip2_clockevent __initconst = {
47
47
.name = "numachip2",
48
48
.rating = 400,
49
49
.set_next_event = numachip2_set_next_event,
50
50
.features = CLOCK_EVT_FEAT_ONESHOT,
51
51
.mult = 1,
52
52
.shift = 0,
53
53
.min_delta_ns = 1250,
54
54
.min_delta_ticks = 1250,
55
55
.max_delta_ns = LONG_MAX,
56
56
.max_delta_ticks = LONG_MAX,