This is a snapshot of the Sleep driver and realted functionality as of
'commit b67bb93f565e ("power: reset: Do not disable SDI during reset")'
on msm-4.4 branch.
Moved Energy Awareness driver and Idle stats driver from
drivers/power/qcom
to drivers/soc/qcom.
Remove lpm-workarounds file that no longer is applicable on newer
branches.
Updated the patch to fix some checkpatch issues
- Remove BUG, conver to WARN
- White space issues
- Replace S_IRUGO etc
- Remove return on void functions
- Add function arguments
- unsigned -> unsigned int
- Add comments around wmb, mb.
- Fix comment styles
- kzalloc to kcalloc
- Updated MSM_PM Kconfig help
Change-Id: I98fec26849898c5c66abbb1b094439780c23964d
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
30 lines
590 B
C
30 lines
590 B
C
#ifndef __MSM_CORE_LIB_H__
|
|
#define __MSM_CORE_LIB_H__
|
|
|
|
#include <linux/ioctl.h>
|
|
|
|
#define TEMP_DATA_POINTS 13
|
|
#define MAX_NUM_FREQ 200
|
|
|
|
enum msm_core_ioctl_params {
|
|
MSM_CORE_LEAKAGE,
|
|
MSM_CORE_VOLTAGE,
|
|
};
|
|
|
|
#define MSM_CORE_MAGIC 0x9D
|
|
|
|
struct sched_params {
|
|
uint32_t cpumask;
|
|
uint32_t cluster;
|
|
uint32_t power[TEMP_DATA_POINTS][MAX_NUM_FREQ];
|
|
uint32_t voltage[MAX_NUM_FREQ];
|
|
uint32_t freq[MAX_NUM_FREQ];
|
|
};
|
|
|
|
|
|
#define EA_LEAKAGE _IOWR(MSM_CORE_MAGIC, MSM_CORE_LEAKAGE,\
|
|
struct sched_params)
|
|
#define EA_VOLT _IOWR(MSM_CORE_MAGIC, MSM_CORE_VOLTAGE,\
|
|
struct sched_params)
|
|
#endif
|