diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2012-04-27 08:06:37 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-01 20:50:53 +0100 |
commit | 505e125ac2c8cecff0d95ce0035cc89c05f43da6 (patch) | |
tree | 46f59d92117ef24a054bcf5c4d6ae572942e8d92 /documentation/dev-manual/dev-manual-kernel-appendix.xml | |
parent | 5a4dc0f4422a5bb4f4bc2f925c98155342332b0d (diff) | |
download | poky-505e125ac2c8cecff0d95ce0035cc89c05f43da6.tar.gz |
documentation/dev-manual/dev-manual-kernel-appendix.xml: updated cpuinit
Looks like calibrate_delay(void) changed in the example. Updated
to the most recent code.
(From yocto-docs rev: f1abcbf730c4b50ceb925e41181429c04eb2d55e)
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/dev-manual-kernel-appendix.xml')
-rw-r--r-- | documentation/dev-manual/dev-manual-kernel-appendix.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/documentation/dev-manual/dev-manual-kernel-appendix.xml b/documentation/dev-manual/dev-manual-kernel-appendix.xml index dc9eb26073..1ac529e6a3 100644 --- a/documentation/dev-manual/dev-manual-kernel-appendix.xml +++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml | |||
@@ -308,10 +308,11 @@ | |||
308 | <literallayout class='monospaced'> | 308 | <literallayout class='monospaced'> |
309 | void __cpuinit calibrate_delay(void) | 309 | void __cpuinit calibrate_delay(void) |
310 | { | 310 | { |
311 | unsigned long lpj; | 311 | unsigned long lpj; |
312 | static bool printed; | 312 | static bool printed; |
313 | int this_cpu = smp_processor_id(); | ||
313 | 314 | ||
314 | if (preset_lpj) { | 315 | if (per_cpu(cpu_loops_per_jiffy, this_cpu)) { |
315 | . | 316 | . |
316 | . | 317 | . |
317 | . | 318 | . |