DM: remove unused function vrtc_reset
Change-Id: If0dbd40cf54eb81ca4ced9acae273d291e99b25c Tracked-On: #3123 Signed-off-by: Ying Liu <ying2.liu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
1a726ce010
commit
2a33d52ec6
|
@ -1007,20 +1007,6 @@ vrtc_set_time(struct vrtc *vrtc, time_t secs)
|
|||
return error;
|
||||
}
|
||||
|
||||
void
|
||||
vrtc_reset(struct vrtc *vrtc)
|
||||
{
|
||||
struct rtcdev *rtc;
|
||||
|
||||
pthread_mutex_lock(&vrtc->mtx);
|
||||
|
||||
rtc = &vrtc->rtcdev;
|
||||
vrtc_set_reg_b(vrtc, rtc->reg_b & ~(RTCSB_ALL_INTRS | RTCSB_SQWE));
|
||||
vrtc_set_reg_c(vrtc, 0);
|
||||
|
||||
pthread_mutex_unlock(&vrtc->mtx);
|
||||
}
|
||||
|
||||
int
|
||||
vrtc_init(struct vmctx *ctx)
|
||||
{
|
||||
|
|
|
@ -45,7 +45,6 @@ struct vmctx;
|
|||
int vrtc_init(struct vmctx *ctx);
|
||||
void vrtc_enable_localtime(int l_time);
|
||||
void vrtc_deinit(struct vmctx *ctx);
|
||||
void vrtc_reset(struct vrtc *vrtc);
|
||||
int vrtc_set_time(struct vrtc *vrtc, time_t secs);
|
||||
int vrtc_nvram_write(struct vrtc *vrtc, int offset, uint8_t value);
|
||||
int vrtc_addr_handler(struct vmctx *ctx, int vcpu, int in, int port,
|
||||
|
|
Loading…
Reference in New Issue