]> granicus.if.org Git - esp-idf/commitdiff
newlib: Remove RTC_DATA_ATTR for adjtime
authorKonstantin Kondrashov <konstantin@espressif.com>
Mon, 4 Jun 2018 10:59:22 +0000 (15:59 +0500)
committerKonstantin Kondrashov <konstantin@espressif.com>
Mon, 4 Jun 2018 10:59:22 +0000 (15:59 +0500)
Using RTC_DATA_ATTR in newlib leads to increased power consumption in sleep mode. (RTC SLOW MEM)

components/newlib/time.c

index 37b78f3de58f972795b87b04e72cfe8fb385b7f4..d40dc57397014d62305be318db7c22d3f9841ed3 100644 (file)
@@ -80,9 +80,9 @@ static uint64_t s_boot_time;
 static _lock_t s_boot_time_lock;
 static _lock_t s_adjust_time_lock;
 // stores the start time of the slew
-RTC_DATA_ATTR static uint64_t adjtime_start = 0;
+static uint64_t adjtime_start = 0;
 // is how many microseconds total to slew
-RTC_DATA_ATTR static int64_t adjtime_total_correction = 0;
+static int64_t adjtime_total_correction = 0;
 #define ADJTIME_CORRECTION_FACTOR 6
 static uint64_t get_time_since_boot();
 #endif