freebsd kernel with SKQ
Go to file
Ian Lepore 0140748043 Rework the cpu frequency management code for imx6.
This adds the concept of "operating points," combinations of frequency
and voltage at which the cpu is known to work correctly.  Some day these
should come from FDT data, but for now the table is hard-coded.

This also allows tuning the min and max operating frequencies.  The min
frequency is what the thermal management code will slow down to if the
core temperature gets too high.  The max frequency is what gets used if
the temperature is okay.

Normally the max cannot be set higher than the value burned into the
ocotp fuses as the chip's rated max, but there is now a new sysctl+tunable
cpu_overclock_enable; when set to non-zero it allows raising the frequency
above the ocotp value: USE WITH CARE!  (At least one of my imx6 boards
has a cpu whose ocotp values never got set correctly; they claim a max
of 792mhz, but the physical markings on the chip say it's good to 1ghz.)

Because all these values affect the entire SoC, there is a new sysctl
node, hw.imx6, where all these values live.  The values that are currently
under dev.imx6_anatop.0 should probably move to hw.imx6 too, because
"anatop" doesn't even mean anything to me, let alone to an end user.
2014-04-02 21:34:48 +00:00
bin sh: Fix memory leak with an assignment before a regular builtin. 2014-03-27 22:57:23 +00:00
cddl MFV r258379; 2014-04-02 15:32:44 +00:00
contrib Add atf m4 files from the vendor branch. 2014-04-01 13:47:08 +00:00
crypto Upgrade to OpenSSH 6.6p1. 2014-03-25 11:05:34 +00:00
etc Add atf m4 files from the vendor branch. 2014-04-01 13:47:08 +00:00
games Correct a typo in Malcolm MacDougall's name. 2014-02-15 22:15:24 +00:00
gnu It is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sure 2014-04-01 14:23:58 +00:00
include Add support for some block functions that come from OS X. These are 2014-04-02 16:07:48 +00:00
kerberos5 Revert my commit in r261253; the real problem was tackled in r262209. 2014-02-20 20:53:29 +00:00
lib Move scandir_b to a later symbol version. 2014-04-02 16:29:29 +00:00
libexec Make bsd.test.mk the only public mk fragment for the building of tests. 2014-03-14 08:56:19 +00:00
release Use xz(1) instead of gzip(1) to compress release images 2014-04-02 16:53:07 +00:00
rescue Remove IPX support. 2014-03-14 02:58:48 +00:00
sbin Document more parition types. 2014-04-02 11:12:48 +00:00
secure Upgrade to OpenSSH 6.6p1. 2014-03-25 11:05:34 +00:00
share Use xz(1) instead of gzip(1) to compress release images 2014-04-02 16:53:07 +00:00
sys Rework the cpu frequency management code for imx6. 2014-04-02 21:34:48 +00:00
tests Correct ARP update handling when the routes for network interfaces are 2014-03-26 22:46:03 +00:00
tools Silence an unnecessary warning. 2014-04-01 18:37:00 +00:00
usr.bin Don't test WITHOUT_FOO in program makefiles, test MK_FOO instead. 2014-04-01 14:24:32 +00:00
usr.sbin Add support for the virtio RNG entropy-source device. 2014-04-02 20:18:17 +00:00
COPYRIGHT Bump copyright year. 2013-12-31 12:18:10 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS Since mlaier has been inactive for a long time, grab maintainership on pf. 2014-03-20 06:22:39 +00:00
Makefile Remove support for legacy mips*eb names. Remove tests for 2014-04-01 14:24:25 +00:00
Makefile.inc1 It is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sure 2014-04-01 14:23:58 +00:00
ObsoleteFiles.inc Add more obsolete files 2014-03-16 20:31:05 +00:00
README Vendor import of OpenSSH 6.6p1. 2014-03-22 15:23:38 +00:00
UPDATING Rather than require a makeoptions DEBUG to get debug correct, 2014-03-25 22:08:31 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html