Britain's former world number one Andy Murray had hip resurfacing surgery in London on Monday.
The three-time Grand Slam champion, 31, announced in January he would retire this year, preferably after Wimbledon.
But he admitted the Australian Open, where he lost to Roberto Bautista Agut in the first round, could be the final tournament of his career.
He said: "I have a metal hip. Feeling a bit battered and bruised but hopefully that will be the end of my hip pain."
The Scot's post on Instagram featured an X-ray picture of his hip.