Skip to content

Commit 2a33d52

Browse files
ying2liuacrnsi
authored andcommitted
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>
1 parent 1a726ce commit 2a33d52

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

devicemodel/hw/platform/rtc.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,20 +1007,6 @@ vrtc_set_time(struct vrtc *vrtc, time_t secs)
10071007
return error;
10081008
}
10091009

1010-
void
1011-
vrtc_reset(struct vrtc *vrtc)
1012-
{
1013-
struct rtcdev *rtc;
1014-
1015-
pthread_mutex_lock(&vrtc->mtx);
1016-
1017-
rtc = &vrtc->rtcdev;
1018-
vrtc_set_reg_b(vrtc, rtc->reg_b & ~(RTCSB_ALL_INTRS | RTCSB_SQWE));
1019-
vrtc_set_reg_c(vrtc, 0);
1020-
1021-
pthread_mutex_unlock(&vrtc->mtx);
1022-
}
1023-
10241010
int
10251011
vrtc_init(struct vmctx *ctx)
10261012
{

devicemodel/include/rtc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ struct vmctx;
4545
int vrtc_init(struct vmctx *ctx);
4646
void vrtc_enable_localtime(int l_time);
4747
void vrtc_deinit(struct vmctx *ctx);
48-
void vrtc_reset(struct vrtc *vrtc);
4948
int vrtc_set_time(struct vrtc *vrtc, time_t secs);
5049
int vrtc_nvram_write(struct vrtc *vrtc, int offset, uint8_t value);
5150
int vrtc_addr_handler(struct vmctx *ctx, int vcpu, int in, int port,

0 commit comments

Comments
 (0)