|
@@ -382,24 +382,28 @@ static void exynos4_mct_tick_start(unsigned long cycles,
|
|
static int exynos4_tick_set_next_event(unsigned long cycles,
|
|
static int exynos4_tick_set_next_event(unsigned long cycles,
|
|
struct clock_event_device *evt)
|
|
struct clock_event_device *evt)
|
|
{
|
|
{
|
|
- struct mct_clock_event_device *mevt = this_cpu_ptr(&percpu_mct_tick);
|
|
|
|
|
|
+ struct mct_clock_event_device *mevt;
|
|
|
|
|
|
|
|
+ mevt = container_of(evt, struct mct_clock_event_device, evt);
|
|
exynos4_mct_tick_start(cycles, mevt);
|
|
exynos4_mct_tick_start(cycles, mevt);
|
|
-
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static int set_state_shutdown(struct clock_event_device *evt)
|
|
static int set_state_shutdown(struct clock_event_device *evt)
|
|
{
|
|
{
|
|
- exynos4_mct_tick_stop(this_cpu_ptr(&percpu_mct_tick));
|
|
|
|
|
|
+ struct mct_clock_event_device *mevt;
|
|
|
|
+
|
|
|
|
+ mevt = container_of(evt, struct mct_clock_event_device, evt);
|
|
|
|
+ exynos4_mct_tick_stop(mevt);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static int set_state_periodic(struct clock_event_device *evt)
|
|
static int set_state_periodic(struct clock_event_device *evt)
|
|
{
|
|
{
|
|
- struct mct_clock_event_device *mevt = this_cpu_ptr(&percpu_mct_tick);
|
|
|
|
|
|
+ struct mct_clock_event_device *mevt;
|
|
unsigned long cycles_per_jiffy;
|
|
unsigned long cycles_per_jiffy;
|
|
|
|
|
|
|
|
+ mevt = container_of(evt, struct mct_clock_event_device, evt);
|
|
cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult)
|
|
cycles_per_jiffy = (((unsigned long long)NSEC_PER_SEC / HZ * evt->mult)
|
|
>> evt->shift);
|
|
>> evt->shift);
|
|
exynos4_mct_tick_stop(mevt);
|
|
exynos4_mct_tick_stop(mevt);
|