Þorbjörn Hornklofi was a 9th-century Norwegian poet. He was the court poet of King Harald Fairhair .