Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power related update #6673

Merged
merged 19 commits into from
Jul 26, 2022
Merged

power related update #6673

merged 19 commits into from
Jul 26, 2022

Conversation

GUIDINGLI
Copy link
Contributor

Summary

add wakelock support, add power procfs support

Impact

power

Testing

VELA

zhuyanlinzyl and others added 6 commits July 22, 2022 00:19
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
drivers/power/greedy_governor.c Outdated Show resolved Hide resolved
drivers/power/greedy_governor.c Outdated Show resolved Hide resolved
drivers/power/pm.h Outdated Show resolved Hide resolved
drivers/power/pm_activity.c Outdated Show resolved Hide resolved
drivers/power/pm_changestate.c Outdated Show resolved Hide resolved
include/nuttx/power/pm.h Outdated Show resolved Hide resolved
GUIDINGLI and others added 10 commits July 22, 2022 14:08
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
power/pm_procfs.c:282:27: warning: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'unsigned int') [-Wformat]
                          dom->wake[state].tv_sec,
                          ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: Entering directory '/home/ligd/platform/m2/audio/frameworks/media'
power/pm_procfs.c:283:27: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
                          100 * dom->wake[state].tv_sec / sum,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
power/pm_procfs.c:284:27: warning: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'unsigned int') [-Wformat]
                          dom->sleep[state].tv_sec,
                          ^~~~~~~~~~~~~~~~~~~~~~~~
power/pm_procfs.c:285:27: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
                          100 * dom->sleep[state].tv_sec / sum,
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
power/pm_procfs.c:286:27: warning: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'unsigned int') [-Wformat]
                          total.tv_sec,
                          ^~~~~~~~~~~~
power/pm_procfs.c:287:27: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
                          100 * total.tv_sec / sum);
                          ^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
@GUIDINGLI GUIDINGLI force-pushed the mine4 branch 2 times, most recently from 214d0c9 to 35fe94e Compare July 22, 2022 08:56
include/nuttx/power/pm.h Show resolved Hide resolved
include/nuttx/power/pm.h Outdated Show resolved Hide resolved
drivers/power/activity_governor.c Outdated Show resolved Hide resolved
drivers/power/activity_governor.c Outdated Show resolved Hide resolved
drivers/power/greedy_governor.c Outdated Show resolved Hide resolved
include/nuttx/power/pm.h Outdated Show resolved Hide resolved
Copy link
Contributor

@davids5 davids5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GUIDINGLI Please review the function comments and correct them as in the example

drivers/power/pm_activity.c Outdated Show resolved Hide resolved
drivers/power/pm_activity.c Outdated Show resolved Hide resolved
drivers/power/pm_activity.c Outdated Show resolved Hide resolved
drivers/power/pm_activity.c Outdated Show resolved Hide resolved
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 7fa3ecd into apache:master Jul 26, 2022
@jerpelea jerpelea added this to To-Add in Release Notes - 11.0.0 Aug 30, 2022
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 11.0.0 Sep 1, 2022
@tmedicci
Copy link
Contributor

tmedicci commented Oct 3, 2023

Hi @GUIDINGLI , could you please take a look at #10852?

Please let me know if I can help you somehow to investigate the origin of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants