Reducing power grid noise in a processor while minimizing performance loss