summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
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 20:50:53 +0100
commit6a415d218a89877749eb780e459c2d754ffe0901 (patch)
tree63b78aee75bc12b721fad00ed678216a6df3da32 /documentation/dev-manual
parent505e125ac2c8cecff0d95ce0035cc89c05f43da6 (diff)
downloadpoky-6a415d218a89877749eb780e459c2d754ffe0901.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: f76465e920c3959230196814f17890065c613730) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-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 .