Non-equilibrium in cosmology