We study Hamiltonian systems which generate extremal flows of regular variational problems on smooth manifolds and demonstrate that negativity of the generalized curvature of such a system implies the existence of a global smooth optimal synthesis for the infinite horizon problem. We also study the case of positive bounded generalized curvature and prove the existence of a C1 smooth optimal syntheis, provided we introduced a suitable exponential discount factor.