Cristiano Ronaldo marked Real Madrid's first La Liga game of the season with a goal as they won 2-0 at home to Cordoba, while Atletico Madrid drew 0-0 at Rayo Vallecano.