diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-06-13 13:51:49 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-06-14 15:58:19 +1000 |
commit | 9fd3916d3031a2edecf50878c494966e729c7b33 (patch) | |
tree | 9306ddf3f8ece7452d9e0d33f8732fbe5cfb43f3 /hw/fsp | |
parent | 79a78d3d8ba61033e6f9084c4519ada1588ebbe1 (diff) | |
download | skiboot-9fd3916d3031a2edecf50878c494966e729c7b33.zip skiboot-9fd3916d3031a2edecf50878c494966e729c7b33.tar.gz skiboot-9fd3916d3031a2edecf50878c494966e729c7b33.tar.bz2 |
FSP/RTC: Remove local fsp_in_reset variable
Now that we are using fsp_in_rr() to detect FSP reset/reload, fsp_in_reset
become redundant. Lets remove this local variable.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
(cherry picked from commit a34369631e6d85c26966eb0b8d5e4c44bcf96c7c)
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r-- | hw/fsp/fsp-rtc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/hw/fsp/fsp-rtc.c b/hw/fsp/fsp-rtc.c index 0a67267..cf1a56d 100644 --- a/hw/fsp/fsp-rtc.c +++ b/hw/fsp/fsp-rtc.c @@ -88,12 +88,6 @@ static enum { static bool rtc_tod_cache_dirty = false; -/* TODO We'd probably want to export and use this variable declared in fsp.c, - * instead of each component individually maintaining the state.. may be for - * later optimization - */ -static bool fsp_in_reset = false; - struct opal_tpo_data { uint64_t tpo_async_token; uint32_t *year_month_day; @@ -520,14 +514,10 @@ static bool fsp_rtc_msg_rr(u32 cmd_sub_mod, struct fsp_msg *msg) switch (cmd_sub_mod) { case FSP_RESET_START: - lock(&rtc_lock); - fsp_in_reset = true; - unlock(&rtc_lock); rc = true; break; case FSP_RELOAD_COMPLETE: lock(&rtc_lock); - fsp_in_reset = false; if (rtc_tod_cache_dirty) { rtc_flush_cached_tod(); rtc_tod_cache_dirty = false; |