1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

documentation/dev-manual/dev-manual-kernel-appendix.xml: altered example

The example code with the printk statements needed to be altered.
And the wording supporting the example was modifyied to be more
generic.

(From yocto-docs rev: 4d03fe2e08dbdcab438aae551e9696e11a3e4477)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2012-04-27 08:11:21 -06:00
committed by Richard Purdie
parent 5a1fb95a8d
commit b2c9b25f97
@@ -321,19 +321,21 @@
<para> <para>
Here is the altered code showing five new <filename>printk</filename> statements Here is the altered code showing five new <filename>printk</filename> statements
just after initializing <filename>lps_precision</filename>: near the top of the function:
<literallayout class='monospaced'> <literallayout class='monospaced'>
void __cpuinit calibrate_delay(void) void __cpuinit calibrate_delay(void)
{ {
unsigned long lpj; unsigned long lpj;
static bool printed; static bool printed;
int this_cpu = smp_processor_id();
printk("*************************************\n"); printk("*************************************\n");
printk("* *\n"); printk("* *\n");
printk("* HELLO YOCTO KERNEL *\n"); printk("* HELLO YOCTO KERNEL *\n");
printk("* *\n"); printk("* *\n");
printk("*************************************\n"); printk("*************************************\n");
if (preset_lpj) { if (per_cpu(cpu_loops_per_jiffy, this_cpu)) {
. .
. .
. .