power: Introducing PowerHAL binderized service
Moving from the default implementation to a binderized service with no wrapping. Now using 1.2 implementation of the IPower interface. Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013, 2018-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
@@ -26,6 +26,13 @@
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef __POWER_COMMON_H__
|
||||
#define __POWER_COMMON_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define NODE_MAX (64)
|
||||
|
||||
#define SCALING_GOVERNOR_PATH "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
|
||||
@@ -42,9 +49,21 @@
|
||||
#define HINT_HANDLED (0)
|
||||
#define HINT_NONE (-1)
|
||||
|
||||
#include <hardware/power.h>
|
||||
|
||||
enum CPU_GOV_CHECK {
|
||||
CPU0 = 0,
|
||||
CPU1 = 1,
|
||||
CPU2 = 2,
|
||||
CPU3 = 3
|
||||
};
|
||||
|
||||
void power_init(void);
|
||||
void power_hint(power_hint_t hint, void *data);
|
||||
void set_interactive(int on);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //__POWER_COMMON_H___
|
||||
|
||||
Reference in New Issue
Block a user