Passage: Edmund came to the throne as the son of Edward the Elder, and therefore the grandson of Alfred the Great, great-grandson of Æthelwulf of Wessex and great-great grandson of Egbert of Wessex, who was the first of the house of Wessex to start dominating the Anglo Saxon realms. However, being born when his father was already a middle aged man, Edmund lost his father when he was a toddler, in 924, which saw his 30 year old half brother Athelstan come to the throne. Edmund would grow up in the reign of Athelstan, even participating in the Battle of Brunanburh in his adolescence in 937.Athelstan died in the year 939, which saw young Edmund come to the throne. Shortly after his proclamation as king, he had to face several military threats. King Olaf III Guthfrithson conquered Northumbria and invaded the Midlands; when Olaf died in 942, Edmund reconquered the Midlands. In 943, Edmund became the godfather of King Olaf of York. In 944, Edmund was successful in reconquering Northumbria. In the same year, his ally Olaf of York lost his throne and left for Dublin in Ireland. Olaf became the king of Dublin as Amlaíb Cuarán and continued to be allied to his godfather. In 945, Edmund conquered Strathclyde but ceded the territory to King Malcolm I of Scotland in exchange for a treaty of mutual military support. Edmund thus established a policy of safe borders and peaceful relationships with Scotland. During his reign, the revival of monasteries in England began.

Question: Who did Edmund establish peace with?
Scotland