[KERNEL] [DEV] [P31xx] AA-ANYKERNEL- fix the Android 4.4.x drain
Why another Kernel?
A lot of user faced a high Battery-Drain since Android 4.4.x.
It is hard to find the cause of the Problem, because it does not happen to everyone.
The problem seems to be related to the merged commit "apply P3110 JB Update1 from opensource.samsung.com
" on our kernel source wich didnīt made Problems before Android 4.4.x.
Who is working on this Kernel?
Since i am still somehow a "Newbie" and donīt understand everything i am not able to sperate the Source of Problem. Our wonderfull Kernel-Dev @ketut.kumajaya is answering my qustions if i run in some trubble.
Why a own Thread for this kernel?
You must know, most of our Roms are using the CM-11.0 Kernel for their Roms - means: a lot of Roms are affected, even if it does not happen to every user. Solveing the issue does not only help fixing CM, also a lot of other Roms wich should be in interest of every user.
About the Process:
I took our SlimKat Kernel as base:
1. Applyed the JB Update 1 commit from @ketut.kumajaya
I went back to 3.0.31 kernel and applyed JB Update 1 in 3 parts instead 1 for better changes tracking.
At least i did the upstream from 3.0.31 to 3.0.101 again and added back all other changes wich got applyed on our 3.0.101 kernel before.
@tuxafgmur made huge commit to solve the drain, it was to big to get it merged.
So i made a diff between his changes - 500.000 lines diff - lol.
I worked many days on it to get out the original commits from the diff and found most of them.
So we know JB Update 1 seems to be the source of problem, now lets go ahead:
2. revert some parts from JB Update 1
Only Partially reverted:
arch/arm/mach-omap2/cpuidle44xx.c: (partially) revert JB Update 1 and partially apply "Fix configs & missing log options" from DhollmenKernel by Tuxafgmur
drivers/net/wireless/bcmdhd/dhd_sec_feature.h: partially revert JB Update 1/3
3. Add back missing parts from Upstream 3.0.38 -> 3.0.39
4. some different changes, iīll list the some times later
[P31xx] AA-ANYKERNEL, Kernel for the Samsung Galaxy Tab 2
Kernel Special Features: