5,605,835 Members 47,707 Now Online
XDA Developers Android and Mobile Development Forum

[q] how to step by step adding governor in own kernel (noobs)

Tip us?
 
ali.filth
Old
(Last edited by ali.filth; 24th January 2014 at 09:29 AM.)
#1  
ali.filth's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 166
Join Date: Sep 2012
Location: balikpapan

 
DONATE TO ME
Default [q] how to step by step adding governor in own kernel (noobs)

HI DEV..

This is my first question on this forum.
I hope the developer can provide knowledge here .. because I am just a beginner to modify the android system.

I am currently making my first kernel, the first session I try to activate swap support, after all walking without a hitch .. I managed to obtain my pack zImage to boot.img and then I flash to my device and it worked.

The second session I tried to add some of the governor, at the start of :
Quote:
- Create a file cpufreq_blabla.c
- Add [obj-$ (CONFIG_CPU_FREQ_GOV_BLABLA) + = cpufreq_blabla.o] in Makefile
- Add menu "CPU Frequency scaling" in Kconfig files
- Add this in cpufreq.h :
extern struct cpufreq_governor cpufreq_gov_blabla;
# Define CPUFREQ_DEFAULT_GOVERNOR (& cpufreq_gov_blabla)
# Elif defined (CONFIG_CPU_FREQ_DEFAULT_GOV_BLABLA)

after I mark some new governor who appears in menuconfig, then I do the command: make-j4
and in the middle of the journey I always found an error like this:
Quote:
drivers/cpufreq/cpufreq_smartass2.c:171: error: 'THIS_MODULE' undeclared here (not in a function)
drivers/cpufreq/cpufreq_smartass2.c: In function 'cpufreq_smartass_init':
drivers/cpufreq/cpufreq_smartass2.c:839: error: implicit declaration of function 'create_rt_workqueue'
drivers/cpufreq/cpufreq_smartass2.c:839: warning: assignment makes pointer from integer without a cast
drivers/cpufreq/cpufreq_smartass2.c: At top level:
drivers/cpufreq/cpufreq_smartass2.c:866: error: expected declaration specifiers or '...' before string constant
drivers/cpufreq/cpufreq_smartass2.c:866: warning: data definition has no type or storage class
drivers/cpufreq/cpufreq_smartass2.c:866: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/cpufreq/cpufreq_smartass2.c:866: warning: function declaration isn't a prototype
drivers/cpufreq/cpufreq_smartass2.c:867: error: expected declaration specifiers or '...' before string constant
drivers/cpufreq/cpufreq_smartass2.c:867: warning: data definition has no type or storage class
drivers/cpufreq/cpufreq_smartass2.c:867: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/cpufreq/cpufreq_smartass2.c:867: warning: function declaration isn't a prototype
drivers/cpufreq/cpufreq_smartass2.c:868: error: expected declaration specifiers or '...' before string constant
drivers/cpufreq/cpufreq_smartass2.c:868: warning: data definition has no type or storage class
drivers/cpufreq/cpufreq_smartass2.c:868: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/cpufreq/cpufreq_smartass2.c:868: warning: function declaration isn't a prototype
make[2]: *** [drivers/cpufreq/cpufreq_smartass2.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
I hope the developers here can give some tips or a solution of my case.
I just beginners who have limited knowledge and I want to learn from you all.


Thanks
=============================================
=============================================
My Work :
=============================================
=============================================

CWM Advance Philz Recovery :
Samsung Galaxy Core GT-I8262
Samsung Galaxy Grand Quattro GT-I8552
LG OPTIMUS L7 P700/05
HTC Sensation

KERNEL :
FILTH Kernel for Samsung Galaxy Core GT-I8262

ROM :
Stock Hybrid MIXING ROM LG OPTIMUS L7 P705
 
ali.filth
Old
#2  
ali.filth's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 166
Join Date: Sep 2012
Location: balikpapan

 
DONATE TO ME
Default nothing responded

please give me a solution..
=============================================
=============================================
My Work :
=============================================
=============================================

CWM Advance Philz Recovery :
Samsung Galaxy Core GT-I8262
Samsung Galaxy Grand Quattro GT-I8552
LG OPTIMUS L7 P700/05
HTC Sensation

KERNEL :
FILTH Kernel for Samsung Galaxy Core GT-I8262

ROM :
Stock Hybrid MIXING ROM LG OPTIMUS L7 P705
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes