Skip to content

Commit

Permalink
DM: remove unused function vrtc_reset
Browse files Browse the repository at this point in the history
Change-Id: If0dbd40cf54eb81ca4ced9acae273d291e99b25c
Tracked-On: #3123
Signed-off-by: Ying Liu <ying2.liu@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
  • Loading branch information
ying2liu authored and acrnsi committed May 24, 2019
1 parent 1a726ce commit 2a33d52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions devicemodel/hw/platform/rtc.c
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion devicemodel/include/rtc.h
Expand Up @@ -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,
Expand Down

0 comments on commit 2a33d52

Please sign in to comment.