02全志r58平台Android4.4.4下关闭内核中的CPU的开启关闭提示

2017/8/18 13:53

版本:V1.0

开发板:SC5806(全志R58平台)

SDK:android4.4.4

1、系统编译:(略)

原始编译的系统,在串口中会有很多打印:(并且还是不停的显示打印!)

[ 3277.071614] CPU1: shutdown

[ 3277.534023] CPU2: shutdown

[ 3277.080857] CPU1: Booted secondary processor

[ 3277.540563] CPU2: Booted secondary processor

[ 3275.490031] CPU3: Booted secondary processor

[ 3279.121504] CPU2: shutdown

[ 3279.552958] CPU3: shutdown

[ 3279.577345] CPU1: shutdown

[ 3279.580034] CPU1: Booted secondary processor

[ 3279.130678] CPU2: Booted secondary processor

[ 3279.561647] CPU3: Booted secondary processor

[ 3282.023760] CPU2: shutdown

[ 3282.032309] CPU2: Booted secondary processor

[ 3283.102187] CPU3: shutdown

[ 3283.382554] CPU1: shutdown

2、

W:\vxiaoyu_s5k5eya\lichee\linux-3.4\arch\arm\kernel\smp.c

/*

* called on the thread which is asking for a CPU to be shutdown -

* waits until shutdown has completed, or it is timed out.

*/

void __cpuinit __cpu_die(unsigned int cpu)

{

if (!wait_for_completion_timeout(&cpu_died, msecs_to_jiffies(5000))) {

pr_err("CPU%u: cpu didn't die\n", cpu);

return;

}

//printk(KERN_NOTICE "CPU%u: shutdown\n", cpu);

if (!platform_cpu_kill(cpu))

printk("CPU%u: unable to kill\n", cpu);

}

/*

* This is the secondary CPU boot entry.  We're using this CPUs

* idle thread stack, but a set of temporary page tables.

*/

asmlinkage void __cpuinit secondary_start_kernel(void)

{

struct mm_struct *mm = &init_mm;

unsigned int cpu;

/*

* The identity mapping is uncached (strongly ordered), so

* switch away from it before attempting any exclusive accesses.

*/

cpu_switch_mm(mm->pgd, mm);

enter_lazy_tlb(mm, current);

local_flush_tlb_all();

/*

* All kernel threads share the same mm context; grab a

* reference and switch to it.

*/

cpu = smp_processor_id();

atomic_inc(&mm->mm_count);

current->active_mm = mm;

cpumask_set_cpu(cpu, mm_cpumask(mm));

//printk("CPU%u: Booted secondary processor\n", cpu);

cpu_init();

preempt_disable();

trace_hardirqs_off();

/*

* Give the platform a chance to do its own initialisation.

*/

platform_secondary_init(cpu);

notify_cpu_starting(cpu);

calibrate_delay();

smp_store_cpu_info(cpu);

/*

* OK, now it's safe to let the boot CPU continue.  Wait for

* the CPU migration code to notice that the CPU is online

* before we continue - which happens after __cpu_up returns.

*/

set_cpu_online(cpu, true);

complete(&cpu_running);

local_irq_enable();

local_fiq_enable();

/*

* OK, it's off to the idle thread for us

*/

cpu_idle();

}

3、重新编译boot/内核打包即可!

02全志r58平台Android4.4.4下关闭内核中的CPU的开启关闭提示的更多相关文章

  1. 31全志r58平台Android4.4.2下打开USB摄像头

    31全志r58平台Android4.4.2下打开USB摄像头 2018/10/26 16:00 版本:V1.0 开发板:SC5806 1.系统编译:(略) 2.需要修改的文件: W:\r58_andr ...

  2. 51全志R58平台Android4.4下Camera的HAL层修改

    51全志R58平台Android4.4下Camera的HAL层修改 2018/11/7 15:20 版本:V1.0 开发板:SC5806 1.系统编译: (略) 2.全志R58平台Android4.4 ...

  3. 全志R58平台的GPIO引脚控制

    全志R58平台的GPIO引脚控制 2017/8/18 15:50 版本:V1.0 开发板:SC5806(全志R58平台) SDK:android4.4.4 本文以GPIO引脚PD24为例,在开发板的背 ...

  4. 461在全志r16平台tinav3.0系统下使用地磁计QMC5883L

    461在全志r16平台tinav3.0系统下使用地磁计QMC5883L 2018/9/7 14:08 版本:V1.0 开发板:SC3817R SDK:tina v3.0 (基本确认全志tina v3. ...

  5. 04全志R58平台编译内核需要选择的配置

    04全志R58平台编译内核需要选择的配置 2018/11/6 14:19 版本:V1.0 开发板:SC5806 1.系统编译:(略) 每次系统编译/内核的时候都需要选3次N: * * Xtables ...

  6. 全志R58平台调通s5k5eya(RAW+MIPI)

    全志R58平台调通s5k5eya(RAW+MIPI) 2017/5/31 10:30 版本:V1.1 1.前期使用的是s5k5eyx的ISP的固件/tuning 文件 Y:\s5k5eya_r58_d ...

  7. 460在全志r16平台tinav3.0系统下使用i2c-tools

    460在全志r16平台tinav3.0系统下使用i2c-tools 2018/9/6 19:05 版本:V1.0 开发板:SC3817R SDK:tina v3.0 1.01原始编译全志r16平台ti ...

  8. VMwarevSphere Client 链接 vCenter Server中的主机,开启虚拟机提示:在主机当前连接状况下不允许执行该操作

    VMwarevSphere Client 链接 vCenter Server中的主机,开启虚拟机提示:在主机当前连接状况下不允许执行该操作很多原因都可以导致该问题出现,例如 vCenter Serve ...

  9. 009全志R16平台tinav3.0下编译不过的问题

    009全志R16平台tinav3.0下编译不过的问题 2018/11/13 11:39 版本:V1.0 开发板:SC3817R SDK:tina v3.0 1.01原始编译全志r16平台tinav3. ...

随机推荐

  1. vue中显示和隐藏导航

    const router = new VueRouter({ mode: 'history', routes: [ { path: '/first', component: firstView, me ...

  2. idea 设置背景图片

    按下 Ctrl+Shift+A 你会看到一个对话框 在里面输入 Set Background Image 进入设置背景图片窗口 设置背景图,点击确定即可 就一个好看,强大的编程工具了

  3. python读取一个英文文件,并记录每个单词出现的次数,降序输出

    对文中出现的句号,逗号和感叹号做了相应的处理 sorted排序函数用法: 按照value值降序排列: sorted(dict.items(),key=lambda k:k[1],reverse=Tru ...

  4. Java输入/输出(I/O)流的分类总结

    java.io中有四个重要的抽象类: InputStream(字节输入流) Reader(字符输入流) OutputStream(字节输出流) Writer(字符输出流) 其中,InputStream ...

  5. I.MX6 android 源码下载

    /************************************************************************* * I.MX6 android 源码下载 * 说明 ...

  6. 使用GAC加速 解决CSP问题 Kakuro - Cross Sums

    Kakuro - Cross Sums 问题如下 一个简单的例子 可以看出限制条件是某行或某列的某几个空白格子求和等于某个值,且每一个限制中的格子所填的数必须为1-9且互异. 直接暴力搜索,空白格子太 ...

  7. bzoj1925地精部落——数学

    题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1925 真是精妙的递推式...好难想到啊: 详见这位的博客:https://www.cnblo ...

  8. Bootstrap-CSS:图片

    ylbtech-Bootstrap-CSS:图片 1.返回顶部 1. Bootstrap 图片 在本章中,我们将学习 Bootstrap 对图片的支持.Bootstrap 提供了三个可对图片应用简单样 ...

  9. 任务17:从UML角度来理解依赖

    什么是依赖 如果我们用EF操作数据库. 那么CustomerController就对Context形成了依赖. 我们这种依赖的写法就是隐式的依赖 显式依赖于隐式依赖 怎么理解隐式的依赖呢? 三层架构是 ...

  10. LightOJ 1140 How Many Zeroes? (数位DP)

    题意:统计在给定区间内0的数量. 析:数位DP,dp[i][j] 表示前 i 位 有 j 个0,注意前导0. 代码如下: #pragma comment(linker, "/STACK:10 ...