[PATCH v6 1/5] mf: Replace state variable with clock_state.