[PATCH] tick: Remove code duplication in tick_handle_periodic()