Lines Matching refs:suspend_clocksource
91 static struct clocksource *suspend_clocksource; variable
714 return cs == suspend_clocksource; in clocksource_is_suspend()
736 if (!suspend_clocksource || cs->rating > suspend_clocksource->rating) in __clocksource_suspend_select()
737 suspend_clocksource = cs; in __clocksource_suspend_select()
748 old_suspend = suspend_clocksource; in clocksource_suspend_select()
750 suspend_clocksource = NULL; in clocksource_suspend_select()
776 if (!suspend_clocksource) in clocksource_start_suspend_timing()
789 if (suspend_clocksource->enable && in clocksource_start_suspend_timing()
790 suspend_clocksource->enable(suspend_clocksource)) { in clocksource_start_suspend_timing()
795 suspend_start = suspend_clocksource->read(suspend_clocksource); in clocksource_start_suspend_timing()
816 if (!suspend_clocksource) in clocksource_stop_suspend_timing()
827 now = suspend_clocksource->read(suspend_clocksource); in clocksource_stop_suspend_timing()
831 suspend_clocksource->mask); in clocksource_stop_suspend_timing()
832 nsec = mul_u64_u32_shr(delta, suspend_clocksource->mult, in clocksource_stop_suspend_timing()
833 suspend_clocksource->shift); in clocksource_stop_suspend_timing()
840 if (!clocksource_is_suspend(cs) && suspend_clocksource->disable) in clocksource_stop_suspend_timing()
841 suspend_clocksource->disable(suspend_clocksource); in clocksource_stop_suspend_timing()