Changeset 762083b in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c


Ignore:
Timestamp:
2012-08-20T22:24:43Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
971f50e7
Parents:
c9abf50
Message:

set the boottime to zero in rtc_dev_initialize(), remove a double call to fibril_mutex_lock() in the
rtc_time_get() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    rc9abf50 r762083b  
    188188        ddf_msg(LVL_DEBUG, "rtc_dev_initialize %s", ddf_dev_get_name(rtc->dev));
    189189
     190        rtc->boottime = 0;
     191
    190192        hw_resource_list_t hw_resources;
    191193        memset(&hw_resources, 0, sizeof(hw_resource_list_t));
     
    313315        }
    314316
    315         fibril_mutex_lock(&rtc->mutex);
    316 
    317317        /* now read the registers */
    318318        do {
Note: See TracChangeset for help on using the changeset viewer.