In a skillet, heat olive oil over medium heat. Add the diced onion and cook until translucent. Add the minced garlic and cook for another minute. Add the cooked potatoes, salt, black pepper, and ground cumin. Mash the potatoes and mix until everything is well combined and heated through.