PID: Apply rate limit for failsafe loggers
Tested:
With 4 as the limit, there are at most 4 logs per second for 1 zone:
```
root@mvbe22-nfd11:~# journalctl --unit=phosphor-pid-control.service -b | grep 'Jan 21 17:08:48' | grep 'Zone `0` is in failsafe mode.'
Jan 21 17:08:48 mvbe22-nfd11.prod.google.com swampd[2090]: Zone `0` is in failsafe mode. With update at `P0_DIMM_0_TS0_TEMP`: The sensor has invalid readings.
Jan 21 17:08:48 mvbe22-nfd11.prod.google.com swampd[2090]: Zone `0` is in failsafe mode. With update at `P0_DIMM_1_TS0_TEMP`: The sensor has invalid readings.
Jan 21 17:08:48 mvbe22-nfd11.prod.google.com swampd[2090]: Zone `0` is in failsafe mode. With update at `P0_DIMM_2_TS0_TEMP`: The sensor has invalid readings.
Jan 21 17:08:48 mvbe22-nfd11.prod.google.com swampd[2090]: Zone `0` is in failsafe mode. With update at `P0_DIMM_3_TS0_TEMP`: The sensor has invalid readings.
```
Fusion-Link:
fusion2.corp.google.com/3982ffd9-31a7-3109-9deb-e430dbda2fe5
fusion2.corp.google.com/09308607-504e-3644-8eab-3fd8bac69bed
fusion2.corp.google.com/2fe3031d-9a3e-378d-bfde-b0e1117b0bc8
fusion2.corp.google.com/3ce1adc6-e8d8-37bb-946c-8736c30caba7
fusion2.corp.google.com/8e8ed699-3867-34e9-a02a-0af9027c6aa3
Change-Id: Ie9d937859016d22667a10a3551dc111ea59360ce
Google-Bug-Id: 452739805
Google-Bug-Id: 467198944
Google-Bug-Id: 473271843
Signed-off-by: James Zheng <alphetis@google.com>
2 files changed