An electronic device, comprising: a processing system; a cooling mechanism for cooling the processing system; and a controller configured to obtain a first measure of a power load of the device at a first time; apply a filter to the first measure of the power load to obtain a first filtered power load value, wherein the filter comprises a power filtering factor configured to reduce a rate of change of the filtered power load value compared to a rate of change of the power load, wherein the filtered power load value is calculated by adding a previous filtered power load value to a product of the power filtering factor times a difference between a measure of the power load and the previous filtered power load value; set a first thermal setpoint based at least on the first filtered power load value; determine a first temperature of the device; adjust a response of the cooling mechanism based at least on the first thermal setpoint and the first temperature of the device; obtain a second measure of the power load of the device at a second time; apply the filter to the second measure of the power load to obtain a second filtered power load value; set a second thermal setpoint based at least on the second filtered power load value; determine a second temperature of the device; and adjust the response of the cooling mechanism based at least on the second thermal setpoint and the second temperature of the device. a processing system; a cooling mechanism for cooling the processing system; and a controller configured to obtain a first measure of a power load of the device at a first time; apply a filter to the first measure of the power load to obtain a first filtered power load value, wherein the filter comprises a power filtering factor configured to reduce a rate of change of the filtered power load value compared to a rate of change of the power load, wherein the filtered power load value is calculated by adding a previous filtered power load value to a product of the power filtering factor times a difference between a measure of the power load and the previous filtered power load value; set a first thermal setpoint based at least on the first filtered power load value; determine a first temperature of the device; adjust a response of the cooling mechanism based at least on the first thermal setpoint and the first temperature of the device; obtain a second measure of the power load of the device at a second time; apply the filter to the second measure of the power load to obtain a second filtered power load value; set a second thermal setpoint based at least on the second filtered power load value; determine a second temperature of the device; and adjust the response of the cooling mechanism based at least on the second thermal setpoint and the second temperature of the device. obtain a first measure of a power load of the device at a first time; apply a filter to the first measure of the power load to obtain a first filtered power load value, wherein the filter comprises a power filtering factor configured to reduce a rate of change of the filtered power load value compared to a rate of change of the power load, wherein the filtered power load value is calculated by adding a previous filtered power load value to a product of the power filtering factor times a difference between a measure of the power load and the previous filtered power load value; set a first thermal setpoint based at least on the first filtered power load value; determine a first temperature of the device; adjust a response of the cooling mechanism based at least on the first thermal setpoint and the first temperature of the device; obtain a second measure of the power load of the device at a second time; apply the filter to the second measure of the power load to obtain a second filtered power load value; set a second thermal setpoint based at least on the second filtered power load value; determine a second temperature of the device; and adjust the response of the cooling mechanism based at least on the second thermal setpoint and the second temperature of the device.