Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
android_kernel_blu_life_one_x2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AlaskaLinuxUser
android_kernel_blu_life_one_x2
Commits
bad90159
Commit
bad90159
authored
Oct 11, 2018
by
alaskalinuxuser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added volt cntrl for little cores.
parent
8c2914d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
README.md
README.md
+2
-1
drivers/clk/msm/clock-cpu-8939.c
drivers/clk/msm/clock-cpu-8939.c
+26
-0
No files found.
README.md
View file @
bad90159
...
...
@@ -6,5 +6,6 @@ It is my goal to modify this kernel. Here are the modifications thus far:
+
Added FIOPS IO scheduler.
+
Added GPU Overclock from 450 to 500 MHz.
+
Added autoSMP hotplug.
+
Added CPU voltage control.
+
Added CPU voltage control
for big cores
.
+
Added Sweep2Wake and DoubleTap2Wake - May not be fully functional, my prox sensor is smashed.
+
Added Little CPU core voltage control.
drivers/clk/msm/clock-cpu-8939.c
View file @
bad90159
...
...
@@ -252,6 +252,17 @@ ssize_t cpu_clock_get_vdd(char *buf)
uv
/
1000
);
}
for
(
i
=
1
;
i
<
a53_lc_clk
.
c
.
num_fmax
;
i
++
)
{
uv
=
cpr_regulator_get_corner_voltage
(
a53_lc_clk
.
c
.
vdd_class
->
regulator
[
0
],
a53_lc_clk
.
c
.
vdd_class
->
vdd_uv
[
i
]);
if
(
uv
<
0
)
return
0
;
count
+=
sprintf
(
buf
+
count
,
"A53_%lumhz: %d mV
\n
"
,
a53_lc_clk
.
c
.
fmax
[
i
]
/
1000000
,
uv
/
1000
);
}
return
count
;
}
...
...
@@ -279,6 +290,21 @@ ssize_t cpu_clock_set_vdd(const char *buf, size_t count)
buf
+=
strlen
(
line
)
+
1
;
}
for
(
i
=
1
;
i
<
a53_lc_clk
.
c
.
num_fmax
;
i
++
)
{
ret
=
sscanf
(
buf
,
"%d"
,
&
mv
);
if
(
ret
!=
1
)
return
-
EINVAL
;
ret
=
cpr_regulator_set_corner_voltage
(
a53_lc_clk
.
c
.
vdd_class
->
regulator
[
0
],
a53_lc_clk
.
c
.
vdd_class
->
vdd_uv
[
i
],
mv
*
1000
);
if
(
ret
<
0
)
return
ret
;
ret
=
sscanf
(
buf
,
"%s"
,
line
);
buf
+=
strlen
(
line
)
+
1
;
}
return
count
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment