Skip to content

Commit bbd2d6b

Browse files
committed
cpufreq: add exynos2100/sd888 (lahaina) support
1 parent e5fad69 commit bbd2d6b

File tree

1 file changed

+11
-7
lines changed
  • app/src/main/java/com/hades/hKtweaks/utils/kernel/cpu

1 file changed

+11
-7
lines changed

app/src/main/java/com/hades/hKtweaks/utils/kernel/cpu/CPUFreq.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ public int getBigCpu() {
683683
}
684684

685685
public boolean hasMidCpu() {
686-
return is9820() || is855();
686+
return is422() || is431();
687687
}
688688

689689
public int getClusterCount() {
@@ -710,11 +710,11 @@ public boolean isBigLITTLE() {
710710
} else if (is7885()) {
711711
mBigCpu = 6;
712712
mLITTLECpu = 0;
713-
} else if (is9820()) {
713+
} else if (is422()) {
714714
mBigCpu = 6;
715715
mMidCpu = 4;
716716
mLITTLECpu = 0;
717-
} else if (is855()){
717+
} else if (is431()){
718718
mBigCpu = 7;
719719
mMidCpu = 4;
720720
mLITTLECpu = 0;
@@ -744,6 +744,7 @@ public boolean isBigLITTLE() {
744744
return mBigCpu >= 0 && mLITTLECpu >= 0;
745745
}
746746

747+
// TODO: get/parse cluster and core listing from /sys/firmware/devicetree/base/cpufreq
747748
private boolean is8996() {
748749
String board = Device.getBoard();
749750
return board.equalsIgnoreCase("msm8996") || board.equalsIgnoreCase("msm8996pro");
@@ -754,7 +755,8 @@ private boolean is7885() {
754755
return (board.contains("7884") || board.contains("7885") || board.contains("7904"));
755756
}
756757

757-
private boolean is9820() {
758+
// triclustered 4 little, 2 middle, 2 big
759+
private boolean is422() {
758760
String board = Device.getBoard();
759761
return board.equalsIgnoreCase("exynos9820")
760762
|| board.equalsIgnoreCase("universal9820")
@@ -763,11 +765,13 @@ private boolean is9820() {
763765
|| board.equalsIgnoreCase("exynos990")
764766
|| board.equalsIgnoreCase("exynos995");
765767
}
766-
767-
private boolean is855() {
768+
// triclustered 4 little, 3 middle, 1 big
769+
private boolean is431() {
768770
String board = Device.getBoard();
769771
return board.equalsIgnoreCase("msmnile")
770-
|| board.equalsIgnoreCase("kona");
772+
|| board.equalsIgnoreCase("kona")
773+
|| board.equalsIgnoreCase("exynos2100")
774+
|| board.equalsIgnoreCase("lahaina");
771775
}
772776

773777
public int getCpuCount() {

0 commit comments

Comments
 (0)