mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-25 06:51:49 +00:00
DM: remove unused function vrtc_get_time
Change-Id: I2074295234f8cfaf5f325bfbacab9c86779653bf 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
8cb64cc71f
commit
1a726ce010
@ -1007,18 +1007,6 @@ vrtc_set_time(struct vrtc *vrtc, time_t secs)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t
|
|
||||||
vrtc_get_time(struct vrtc *vrtc)
|
|
||||||
{
|
|
||||||
time_t basetime;
|
|
||||||
time_t t;
|
|
||||||
|
|
||||||
pthread_mutex_lock(&vrtc->mtx);
|
|
||||||
t = vrtc_curtime(vrtc, &basetime);
|
|
||||||
pthread_mutex_unlock(&vrtc->mtx);
|
|
||||||
return t;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
vrtc_reset(struct vrtc *vrtc)
|
vrtc_reset(struct vrtc *vrtc)
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,6 @@ int vrtc_init(struct vmctx *ctx);
|
|||||||
void vrtc_enable_localtime(int l_time);
|
void vrtc_enable_localtime(int l_time);
|
||||||
void vrtc_deinit(struct vmctx *ctx);
|
void vrtc_deinit(struct vmctx *ctx);
|
||||||
void vrtc_reset(struct vrtc *vrtc);
|
void vrtc_reset(struct vrtc *vrtc);
|
||||||
time_t vrtc_get_time(struct vrtc *vrtc);
|
|
||||||
int vrtc_set_time(struct vrtc *vrtc, time_t secs);
|
int vrtc_set_time(struct vrtc *vrtc, time_t secs);
|
||||||
int vrtc_nvram_write(struct vrtc *vrtc, int offset, uint8_t value);
|
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,
|
int vrtc_addr_handler(struct vmctx *ctx, int vcpu, int in, int port,
|
||||||
|
Loading…
Reference in New Issue
Block a user