summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/dev-manual-kernel-appendix.xml
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/dev-manual/dev-manual-kernel-appendix.xml')
-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 .