diff options
| author | Nick Vaccaro <nvaccaro@google.com> | 2016-11-28 14:51:46 -0800 |
|---|---|---|
| committer | Nick Vaccaro <nvaccaro@google.com> | 2016-11-28 14:58:30 -0800 |
| commit | 1e811fca229cc8dccc6914d331591050b273ad02 (patch) | |
| tree | 17a047671045ce1287928328d78085b32f262e99 /healthd | |
| parent | 431c355cb5a29366772e580921af1eb916aea602 (diff) | |
| parent | 1f1a6fdac88650c135b1f113330e5c47d85c25e5 (diff) | |
| download | system_core-1e811fca229cc8dccc6914d331591050b273ad02.tar.gz system_core-1e811fca229cc8dccc6914d331591050b273ad02.tar.bz2 system_core-1e811fca229cc8dccc6914d331591050b273ad02.zip | |
resolve merge conflicts of 1f1a6fd to nyc-mr1-dev-plus-aosp
Change-Id: Ic07b6db6f47d2157aef0d04d025ba747d0a4247d
Diffstat (limited to 'healthd')
| -rw-r--r-- | healthd/Android.mk | 8 | ||||
| -rw-r--r-- | healthd/healthd.cpp | 16 |
2 files changed, 21 insertions, 3 deletions
diff --git a/healthd/Android.mk b/healthd/Android.mk index 7c5e35bac..1c130dc1b 100644 --- a/healthd/Android.mk +++ b/healthd/Android.mk @@ -90,6 +90,14 @@ endif LOCAL_C_INCLUDES := bootable/recovery $(LOCAL_PATH)/include +ifneq ($(BOARD_PERIODIC_CHORES_INTERVAL_FAST),) +LOCAL_CFLAGS += -DBOARD_PERIODIC_CHORES_INTERVAL_FAST=$(BOARD_PERIODIC_CHORES_INTERVAL_FAST) +endif + +ifneq ($(BOARD_PERIODIC_CHORES_INTERVAL_SLOW),) +LOCAL_CFLAGS += -DBOARD_PERIODIC_CHORES_INTERVAL_SLOW=$(BOARD_PERIODIC_CHORES_INTERVAL_SLOW) +endif + LOCAL_STATIC_LIBRARIES := \ libhealthd_internal \ libbatterymonitor \ diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 97ed51df5..3f0e047cf 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp @@ -35,9 +35,19 @@ using namespace android; -// Periodic chores intervals in seconds -#define DEFAULT_PERIODIC_CHORES_INTERVAL_FAST (60 * 1) -#define DEFAULT_PERIODIC_CHORES_INTERVAL_SLOW (60 * 10) +#ifndef BOARD_PERIODIC_CHORES_INTERVAL_FAST + // Periodic chores fast interval in seconds + #define DEFAULT_PERIODIC_CHORES_INTERVAL_FAST (60 * 1) +#else + #define DEFAULT_PERIODIC_CHORES_INTERVAL_FAST (BOARD_PERIODIC_CHORES_INTERVAL_FAST) +#endif + +#ifndef BOARD_PERIODIC_CHORES_INTERVAL_SLOW + // Periodic chores fast interval in seconds + #define DEFAULT_PERIODIC_CHORES_INTERVAL_SLOW (60 * 10) +#else + #define DEFAULT_PERIODIC_CHORES_INTERVAL_SLOW (BOARD_PERIODIC_CHORES_INTERVAL_SLOW) +#endif static struct healthd_config healthd_config = { .periodic_chores_interval_fast = DEFAULT_PERIODIC_CHORES_INTERVAL_FAST, |
