Add Nightmare governor (Thanks to Alucard24)
cpufreq_nightmare.c: Ported nightmare governor for Galaxy Nexus

drivers/cpufreq/cpufreq_nightmare.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_nightmare.c:437:2: error: implicit declaration of function ‘kcpustat_cpu’ [-Werror=implicit-function-declaration]
drivers/cpufreq/cpufreq_nightmare.c:437:32: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:437:41: error: ‘CPUTIME_USER’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:437:41: note: each undeclared identifier is reported only once for each function it appears in
drivers/cpufreq/cpufreq_nightmare.c:438:32: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:438:41: error: ‘CPUTIME_SYSTEM’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:439:32: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:439:41: error: ‘CPUTIME_IRQ’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:440:32: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:440:41: error: ‘CPUTIME_SOFTIRQ’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:441:32: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:441:41: error: ‘CPUTIME_STEAL’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:442:32: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:442:41: error: ‘CPUTIME_NICE’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_sampling_down_factor’:
drivers/cpufreq/cpufreq_nightmare.c:624:22: warning: unused variable ‘j’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_ignore_nice_load’:
drivers/cpufreq/cpufreq_nightmare.c:662:45: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:662:54: error: ‘CPUTIME_NICE’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_sampling_up_factor’:
drivers/cpufreq/cpufreq_nightmare.c:882:22: warning: unused variable ‘j’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘dbs_check_cpu’:
drivers/cpufreq/cpufreq_nightmare.c:1275:30: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:1275:39: error: ‘CPUTIME_NICE’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:1284:47: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c: In function ‘cpufreq_governor_nightmare’:
drivers/cpufreq/cpufreq_nightmare.c:1545:21: error: request for member ‘cpustat’ in something not a structure or union
drivers/cpufreq/cpufreq_nightmare.c:1545:30: error: ‘CPUTIME_NICE’ undeclared (first use in this function)
drivers/cpufreq/cpufreq_nightmare.c:1517:34: warning: unused variable ‘freq_table’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: At top level:
drivers/cpufreq/cpufreq_nightmare.c:1461:30: warning: ‘pm_notifier’ defined but not used [-Wunused-variable]
cc1: some warnings being treated as errors
make[2]: *** [drivers/cpufreq/cpufreq_nightmare.o] 오류 1
make[1]: *** [drivers/cpufreq] 오류 2
make: *** [drivers] 오류 2
make: *** 끝나지 않은 작업을 기다리고 있습니다....
cpufreq_nightmare.c: Fix all warning

drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_sampling_down_factor’:
drivers/cpufreq/cpufreq_nightmare.c:625:22: warning: unused variable ‘j’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_sampling_up_factor’:
drivers/cpufreq/cpufreq_nightmare.c:883:22: warning: unused variable ‘j’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘cpufreq_governor_nightmare’:
drivers/cpufreq/cpufreq_nightmare.c:1518:34: warning: unused variable ‘freq_table’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: At top level:
drivers/cpufreq/cpufreq_nightmare.c:1462:30: warning: ‘pm_notifier’ defined but not used [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c:1437:12: warning: ‘pm_notifier_call’ defined but not used [-Wunused-function]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_nightmare.c:438:13: warning: ‘busy_time’ is used uninitialized in this function [-Wuninitialized]
cpufreq_nightmare.c: Fix hotplug frequency
cpufreq_nightmare.c: Update nightmare governor
(https://github.com/Alucard24/Dorimanx-SG2-I9100-Kernel/commit/21104eab18966a4c3eed45fa614709fa20150c2d
https://github.com/Alucard24/Dorimanx-SG2-I9100-Kernel/commit/3c2f7b6198970586b1571608570f81c5b3347fb4
https://github.com/Alucard24/Dorimanx-SG2-I9100-Kernel/commit/6d46b6e7ed538536b26198d6f0e1048b847f46d5)
cpufreq_nightmare.c: Fix code
(https://github.com/Alucard24/Dorimanx-SG2-I9100-Kernel/commit/4db889ccf1d81f011c4be939e16b43c4902fed9f)
cpufreq_nightmare.c: Remove CONFIG_CPU_EXYNOS4210
cpufreq_nightmare.c: Fix hotplug frquency
cpufreq_nightmare.c: Update nightmare governor
(Updated Nightmare governor! Less battery consuming :)
Nightmare governor new settings! Missing to integrate into exynos_cpufreq.c, but it's very stable!)
-Thanks to Alucard24
Ported new Nightmare governor on Galaxy Nexus ! -exp
Signed-off-by: Seongmin Park <r_data@naver.com>
cpufreq_nightmare.c: Fix all warnings
drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_sampling_down_factor’:
drivers/cpufreq/cpufreq_nightmare.c:602:22: warning: unused variable ‘j’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘store_sampling_up_factor’:
drivers/cpufreq/cpufreq_nightmare.c:847:22: warning: unused variable ‘j’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘cpufreq_governor_nightmare’:
drivers/cpufreq/cpufreq_nightmare.c:1858:38: warning: unused variable ‘cpu_nightmare_cpuinfo’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c:1751:15: warning: unused variable ‘online’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c:1748:34: warning: unused variable ‘freq_table’ [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: At top level:
drivers/cpufreq/cpufreq_nightmare.c:132:21: warning: ‘get_nr_run_avg’ defined but not used [-Wunused-function]
drivers/cpufreq/cpufreq_nightmare.c:1297:13: warning: ‘debug_hotplug_check’ defined but not used [-Wunused-function]
drivers/cpufreq/cpufreq_nightmare.c:1624:30: warning: ‘pm_notifier’ defined but not used [-Wunused-variable]
drivers/cpufreq/cpufreq_nightmare.c: In function ‘get_cpu_idle_time_jiffy’:
drivers/cpufreq/cpufreq_nightmare.c:477:13: warning: ‘busy_time’ is used uninitialized in this function [-Wuninitialized]
...

Signed-off-by: Seongmin Park <r_data@naver.com>
add nightmare