Asymptotically constant functions and second order linear oscillation