GithubHelp home page GithubHelp logo

Comments (5)

walter79 avatar walter79 commented on July 24, 2024

CONFIG_NR_CPUS=8
(= 8 cores)

CONFIG_NR_CPUS=4
(= 4 cores)

https://github.com/visi0nary/android_kernel_elephone_p8000/blob/cm-12.1/arch/arm64/configs/p8000_cyanogenmod12_1_defconfig#L274

from android_kernel_elephone_p8000.

janengelmohr avatar janengelmohr commented on July 24, 2024

Nice!

from android_kernel_elephone_p8000.

walter79 avatar walter79 commented on July 24, 2024

[B]Hotplug settings:[/B]

found here: /kernel/elephone/p8000/drivers/misc/mediatek/mach/mt6735/include/mach/mt_hotplug_strategy_internal.h

[CODE]
#define HPS_TASK_PRIORITY (MAX_RT_PRIO - 3)
#define HPS_TIMER_INTERVAL_MS (100)

#define MAX_CPU_UP_TIMES (10)
#define MAX_CPU_DOWN_TIMES (100)
#define MAX_TLP_TIMES (10)
//cpu capability of big / little = 1.7, aka 170, 170 - 100 = 70
#define CPU_DMIPS_BIG_LITTLE_DIFF (70)

/*

  • CONFIG - runtime
  • Execute time interval : 100 ms
    */
    #define DEF_CPU_UP_THRESHOLD (95)
    #define DEF_CPU_UP_TIMES (2)
    #define DEF_CPU_DOWN_THRESHOLD (85)
    #define DEF_CPU_DOWN_TIMES (8)
    #define DEF_TLP_TIMES (1)

#define EN_CPU_INPUT_BOOST (1)
#define DEF_CPU_INPUT_BOOST_CPU_NUM (2)

#define EN_CPU_RUSH_BOOST (1)
#define DEF_CPU_RUSH_BOOST_THRESHOLD (98)
#define DEF_CPU_RUSH_BOOST_TIMES (1)

#define EN_HPS_LOG (1)
#define EN_ISR_LOG (0)

/*

  • EARLY SYSPEND CONFIG - runtime
  • Execute time interval : 400 ms
    */
    #define DEF_ES_CPU_UP_THRESHOLD (95)
    #define DEF_ES_CPU_UP_TIMES (1)
    #define DEF_ES_CPU_DOWN_THRESHOLD (85)
    #define DEF_ES_CPU_DOWN_TIMES (2)
    [/CODE]

Found this: /kernel/elephone/p8000/drivers/misc/mediatek/mach/mt6735/mt_hotplug_strategy_main.c

[CODE]
//In order to fast screen on, power on extra little CPU to serve system resume.
little_cpu_num_resume = 4;
[/CODE]

from android_kernel_elephone_p8000.

walter79 avatar walter79 commented on July 24, 2024

This works well but need some improvement in cpu governor

little_cpu_num_resume = 1

#define EN_CPU_INPUT_BOOST (0)

#define EN_CPU_RUSH_BOOST (0)

from android_kernel_elephone_p8000.

janengelmohr avatar janengelmohr commented on July 24, 2024

Closed because it limits hotplugging to a reasonable amount

from android_kernel_elephone_p8000.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.