kernel_optimize_test/arch/powerpc
Tony Breeds fc9069fe56 [POWERPC] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane
When booting a current kernel with CONFIG_PRINTK_TIME enabled you'll
see messages like:

[    0.000000] time_init: decrementer frequency = 188.044000 MHz
[    0.000000] time_init: processor frequency   = 1504.352000 MHz
[3712914.436297] Console: colour dummy device 80x25

This cause by the initialisation of tb_to_ns_scale in time_init(), suddenly the
multiplication in sched_clock() now does something :).  This patch modifies
sched_clock() to report the offset since the machine booted so the same
printk's now look like:

[    0.000000] time_init: decrementer frequency = 188.044000 MHz
[    0.000000] time_init: processor frequency   = 1504.352000 MHz
[    0.000135] Console: colour dummy device 80x25

Effectivly including the uptime in printk()s.

This patch makes tb_to_ns_scale and tb_to_ns_shift static and
read_mostly for good measure.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-07-10 22:00:54 +10:00
..
boot [POWERPC] Create a dummy zImage if no valid platform has been selected 2007-07-10 22:00:52 +10:00
configs [POWERPC] PS3: Update ps3_defconfig 2007-06-28 19:18:06 +10:00
kernel [POWERPC] Modify sched_clock() to make CONFIG_PRINTK_TIME more sane 2007-07-10 22:00:54 +10:00
lib [POWERPC] Fix alignment problem in rh_alloc_align() with exact-sized blocks 2007-05-17 21:10:16 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Move inline asm eieio to using eieio inline function 2007-07-10 00:33:14 -05:00
oprofile [POWERPC] Oprofile enhanced instruction sampling support 2007-07-10 21:55:48 +10:00
platforms [POWERPC] PS3: Bootwrapper support. 2007-07-10 21:56:40 +10:00
sysdev [POWERPC] 8xx: mpc885ads pcmcia support 2007-07-10 00:33:51 -05:00
xmon [POWERPC] Make two xmon variables static 2007-07-10 21:55:46 +10:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] Remove PCI-e errata for MPC8641 silicon ver 1.0 2007-06-29 01:58:17 -05:00
Kconfig.debug Fix trivial typos in Kconfig* files 2007-05-09 07:12:20 +02:00
Makefile [POWERPC] Remove 'make zImage.dts' feature 2007-06-25 16:58:12 +10:00