summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2012-04-27 08:11:21 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-01 21:00:35 +0100
commitb2c9b25f9708570a1f3bf5919eea9db2c7908a38 (patch)
tree0de5535c9c2943cc2b18a674b71edf47275d65b8 /documentation
parent5a1fb95a8dde9f138948de604c2935ce3229e608 (diff)
downloadpoky-b2c9b25f9708570a1f3bf5919eea9db2c7908a38.tar.gz
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>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-kernel-appendix.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/documentation/dev-manual/dev-manual-kernel-appendix.xml b/documentation/dev-manual/dev-manual-kernel-appendix.xml
index 1ac529e6a3..b72745910c 100644
--- a/documentation/dev-manual/dev-manual-kernel-appendix.xml
+++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml
@@ -321,19 +321,21 @@
321 321
322 <para> 322 <para>
323 Here is the altered code showing five new <filename>printk</filename> statements 323 Here is the altered code showing five new <filename>printk</filename> statements
324 just after initializing <filename>lps_precision</filename>: 324 near the top of the function:
325 <literallayout class='monospaced'> 325 <literallayout class='monospaced'>
326 void __cpuinit calibrate_delay(void) 326 void __cpuinit calibrate_delay(void)
327 { 327 {
328 unsigned long lpj; 328 unsigned long lpj;
329 static bool printed; 329 static bool printed;
330 int this_cpu = smp_processor_id();
331
330 printk("*************************************\n"); 332 printk("*************************************\n");
331 printk("* *\n"); 333 printk("* *\n");
332 printk("* HELLO YOCTO KERNEL *\n"); 334 printk("* HELLO YOCTO KERNEL *\n");
333 printk("* *\n"); 335 printk("* *\n");
334 printk("*************************************\n"); 336 printk("*************************************\n");
335 337
336 if (preset_lpj) { 338 if (per_cpu(cpu_loops_per_jiffy, this_cpu)) {
337 . 339 .
338 . 340 .
339 . 341 .