kernel low-level debugging functions. Add earlyprintk to your
kernel parameters to enable this console.
- config OC_ETM
- bool "On-chip ETM and ETB"
- depends on ARM_AMBA
- help
- Enables the on-chip embedded trace macrocell and embedded trace
- buffer driver that will allow you to collect traces of the
- kernel code.
-
+config EARLY_PRINTK_DIRECT
+ bool "Early printk direct"
+ depends on DEBUG_LL
+ help
+ Say Y here if you want to have an early console using the
+ kernel low-level debugging functions and EARLY_PRINTK is
+ not early enough.
+
config ARM_KPROBES_TEST
tristate "Kprobes test module"
depends on KPROBES && MODULES
}
early_init_fdt_scan_reserved_mem();
- dma_contiguous_reserve(0);
+#ifdef CONFIG_ARCH_ROCKCHIP
+ rockchip_ion_reserve_bit64();
+#endif
+
+ /* 4GB maximum for 32-bit only capable devices */
+ if (IS_ENABLED(CONFIG_ZONE_DMA))
+ dma_phys_limit = max_zone_dma_phys();
+ dma_contiguous_reserve(dma_phys_limit);
memblock_allow_resize();
memblock_dump_all();
int boostpulse_duration_val;
/* End time of boost pulse in ktime converted to usecs */
u64 boostpulse_endtime;
+#ifdef CONFIG_ARCH_ROCKCHIP
+ /* Frequency to which a touch boost takes the cpus to */
+ unsigned long touchboost_freq;
+ /* Duration of a touchboost pulse in usecs */
+ int touchboostpulse_duration_val;
+ /* End time of touchboost pulse in ktime converted to usecs */
+ u64 touchboostpulse_endtime;
+#endif
+ bool boosted;
/*
* Max additional time to wait in idle, beyond timer_rate, at speeds
* above minimum before wakeup to reduce speed, or -1 if unnecessary.
do_div(cputime_speedadj, delta_time);
loadadjfreq = (unsigned int)cputime_speedadj * 100;
cpu_load = loadadjfreq / pcpu->target_freq;
- boosted = tunables->boost_val || now < tunables->boostpulse_endtime;
+ tunables->boosted = tunables->boost_val || now < tunables->boostpulse_endtime;
- boosted |= now < tunables->touchboostpulse_endtime;
+#ifdef CONFIG_ARCH_ROCKCHIP
+ pcpu->target_freq = pcpu->policy->cur;
- if (cpu_load >= tunables->go_hispeed_load || boosted) {
++ tunables->boosted |= now < tunables->touchboostpulse_endtime;
+#endif
+
+ if (cpu_load >= tunables->go_hispeed_load || tunables->boosted) {
+#ifdef CONFIG_ARCH_ROCKCHIP
+ if (now < tunables->touchboostpulse_endtime) {
+ new_freq = choose_freq(pcpu, loadadjfreq);
+ if (new_freq < tunables->touchboost_freq)
+ new_freq = tunables->touchboost_freq;
+ } else
+#endif
if (pcpu->target_freq < tunables->hispeed_freq) {
new_freq = tunables->hispeed_freq;
} else {