V8 Supercars championship leader Jamie Whincup edged out Will Davison to take pole position for race two at Winton.