Lines Matching refs:suspend_clocksource
91 static struct clocksource *suspend_clocksource; variable
684 return cs == suspend_clocksource; in clocksource_is_suspend()
706 if (!suspend_clocksource || cs->rating > suspend_clocksource->rating) in __clocksource_suspend_select()
707 suspend_clocksource = cs; in __clocksource_suspend_select()
718 old_suspend = suspend_clocksource; in clocksource_suspend_select()
720 suspend_clocksource = NULL; in clocksource_suspend_select()
746 if (!suspend_clocksource) in clocksource_start_suspend_timing()
759 if (suspend_clocksource->enable && in clocksource_start_suspend_timing()
760 suspend_clocksource->enable(suspend_clocksource)) { in clocksource_start_suspend_timing()
765 suspend_start = suspend_clocksource->read(suspend_clocksource); in clocksource_start_suspend_timing()
786 if (!suspend_clocksource) in clocksource_stop_suspend_timing()
797 now = suspend_clocksource->read(suspend_clocksource); in clocksource_stop_suspend_timing()
801 suspend_clocksource->mask); in clocksource_stop_suspend_timing()
802 nsec = mul_u64_u32_shr(delta, suspend_clocksource->mult, in clocksource_stop_suspend_timing()
803 suspend_clocksource->shift); in clocksource_stop_suspend_timing()
810 if (!clocksource_is_suspend(cs) && suspend_clocksource->disable) in clocksource_stop_suspend_timing()
811 suspend_clocksource->disable(suspend_clocksource); in clocksource_stop_suspend_timing()