--- zzzz-none-000/linux-3.10.107/arch/blackfin/kernel/setup.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/blackfin/kernel/setup.c 2021-02-04 17:41:59.000000000 +0000 @@ -17,7 +17,7 @@ #ifdef CONFIG_MTD_UCLINUX #include #include -#include +#include #include #endif @@ -35,6 +35,9 @@ #ifdef CONFIG_BF60x #include #endif +#ifdef CONFIG_SCB_PRIORITY +#include +#endif u16 _bfin_swrst; EXPORT_SYMBOL(_bfin_swrst); @@ -99,7 +102,7 @@ } #endif -void __cpuinit bfin_setup_caches(unsigned int cpu) +void bfin_setup_caches(unsigned int cpu) { #ifdef CONFIG_BFIN_ICACHE bfin_icache_init(icplb_tbl[cpu]); @@ -165,7 +168,7 @@ #endif } -void __cpuinit bfin_setup_cpudata(unsigned int cpu) +void bfin_setup_cpudata(unsigned int cpu) { struct blackfin_cpudata *cpudata = &per_cpu(cpu_data, cpu); @@ -1101,6 +1104,9 @@ #endif init_exception_vectors(); bfin_cache_init(); /* Initialize caches for the boot CPU */ +#ifdef CONFIG_SCB_PRIORITY + init_scb(); +#endif } static int __init topology_init(void) @@ -1458,5 +1464,5 @@ { early_shadow_stamp(); if (r0) - strncpy(command_line, r0, COMMAND_LINE_SIZE); + strlcpy(command_line, r0, COMMAND_LINE_SIZE); }