Lines Matching refs:suspend_clocksource
91 static struct clocksource *suspend_clocksource; variable
737 return cs == suspend_clocksource; in clocksource_is_suspend()
759 if (!suspend_clocksource || cs->rating > suspend_clocksource->rating) in __clocksource_suspend_select()
760 suspend_clocksource = cs; in __clocksource_suspend_select()
771 old_suspend = suspend_clocksource; in clocksource_suspend_select()
773 suspend_clocksource = NULL; in clocksource_suspend_select()
799 if (!suspend_clocksource) in clocksource_start_suspend_timing()
812 if (suspend_clocksource->enable && in clocksource_start_suspend_timing()
813 suspend_clocksource->enable(suspend_clocksource)) { in clocksource_start_suspend_timing()
818 suspend_start = suspend_clocksource->read(suspend_clocksource); in clocksource_start_suspend_timing()
839 if (!suspend_clocksource) in clocksource_stop_suspend_timing()
850 now = suspend_clocksource->read(suspend_clocksource); in clocksource_stop_suspend_timing()
854 suspend_clocksource->mask); in clocksource_stop_suspend_timing()
855 nsec = mul_u64_u32_shr(delta, suspend_clocksource->mult, in clocksource_stop_suspend_timing()
856 suspend_clocksource->shift); in clocksource_stop_suspend_timing()
863 if (!clocksource_is_suspend(cs) && suspend_clocksource->disable) in clocksource_stop_suspend_timing()
864 suspend_clocksource->disable(suspend_clocksource); in clocksource_stop_suspend_timing()