GithubHelp home page GithubHelp logo

kukzile / linux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hardkernel/linux

0.0 0.0 0.0 3.32 GB

Linux kernel source tree

License: Other

Perl 0.09% C 95.57% Shell 0.03% Awk 0.01% Python 0.02% Assembly 1.70% C++ 1.53% Objective-C 0.71% UnrealScript 0.01% Makefile 0.29% GDB 0.01% Yacc 0.02% Lex 0.01% Roff 0.01% Mathematica 0.01% XS 0.01% M4 0.01% sed 0.01% SmPL 0.01% Raku 0.01%

linux's Introduction

Linux Kernel for Odroid Xu3 with the following changes-
1) Updated DTS file for 4480 us update period for power sensor
2) Additional governor called performance2 for DVFS

If you wish to add a governor, then make changed in the following files:
1) /drivers/cpufreq/cpufrex_xxx.c - Your governor
2) /include/linux/cpufreq.h
3) /drivers/cpufreq/cpufreq.c
4) /drivers/cpufreq/Makefile
5) /drivers/cpufreq/Kconfig

Refer below  for additional details: 
Changes in Kconfig file: 
[CODE]
config CPU_FREQ_DEFAULT_PERFORMANCE2
bool “Performance2”
select CPU_FREQ_GOV_PERFORMANCE2
help
Use the CPUFreq governor ‘P2’ as default.
[/CODE]

and these lines:

[CODE]
config CPU_FREQ_GOV_PERFORMANCE2
tristate “‘performance2’ cpufreq performance2”
depends on CPU_FREQ
help
‘P2’ 
[/CODE]

And edited the Makefile in that folder to say:

[CODE]
# CPUfreq governors
obj-$(CONFIG_CPU_FREQ_GOV_PERFORMANCE) += cpufreq_performance.o
obj-$(CONFIG_CPU_FREQ_GOV_POWERSAVE) += cpufreq_powersave.o
obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE) += cpufreq_userspace.o
obj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND) += cpufreq_ondemand.o
obj-$(CONFIG_CPU_FREQ_GOV_CONSERVATIVE) += cpufreq_conservative.o
obj-$(CONFIG_CPU_FREQ_GOV_INTERACTIVE) += cpufreq_interactive.o
obj-$(CONFIG_CPU_FREQ_GOV_YANKACTIVE) += cpufreq_performance2.o
[/CODE]

And finaly, I added these lines to the cpufreq.h file:

[CODE]
#elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE2)
extern struct cpufreq_governor cpufreq_gov_performance2;
#define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_performance2)
[/CODE]

linux's People

Contributors

torvalds avatar tiwai avatar davem330 avatar broonie avatar htejun avatar gregkh avatar pmundt avatar kaga-koko avatar bzolnier avatar adrianbunk avatar ralfbaechle avatar joeperches avatar axellin avatar arndb avatar jmberg-intel avatar rddunlap avatar kaber avatar jmberg avatar hverkuil avatar dhowells avatar ozbenh avatar neilbrown avatar ebiederm avatar acmel avatar rjwysocki avatar heicarst avatar herbertx avatar avikivity avatar alanstern avatar ickle avatar

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.