diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2020-09-23 15:21:18 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-29 16:30:59 +0000 |
commit | d4be394be0b91a71b2f16ca476114b7470bc630f (patch) | |
tree | e08dd7e428be1d27b65c4bae3ba8a47e40c8b1a5 /test | |
parent | 9513a63a626021b071199d02b7c73112eb746833 (diff) | |
download | chrome-ec-d4be394be0b91a71b2f16ca476114b7470bc630f.tar.gz |
tree: rename atomic_* functions to deprecated_atomic_*
We will move to an API compatible with Zephyr's API. See the bug for
complete rationale and plan.
BUG=b:169151160
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Id611f663446abf00b24298a669f2ae47fef7f632
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2427507
Tested-by: Dawid Niedźwiecki <dn@semihalf.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/stm32f_rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stm32f_rtc.c b/test/stm32f_rtc.c index fc1d0aaedb..7eb1930892 100644 --- a/test/stm32f_rtc.c +++ b/test/stm32f_rtc.c @@ -13,7 +13,7 @@ static const int rtc_delay_ms = 500; /* Override default RTC interrupt handler */ void __rtc_alarm_irq(void) { - atomic_add(&rtc_fired, 1); + deprecated_atomic_add(&rtc_fired, 1); reset_rtc_alarm(&rtc_irq); } @@ -29,7 +29,7 @@ test_static int test_rtc_alarm(void) msleep(2 * rtc_delay_ms); /* Make sure the interrupt fired exactly once. */ - TEST_EQ(1, atomic_read_clear(&rtc_fired), "%d"); + TEST_EQ(1, deprecated_atomic_read_clear(&rtc_fired), "%d"); rtc_diff_us = get_rtc_diff(&rtc, &rtc_irq); |