Calibrate delay and bogomips.
From: Martin Schwidefsky <[email protected]>
[S390] Calibrate delay and bogomips.
Preset the bogomips number to the cpu capacity value reported by store system information in SYSIB 1.2.2. This value is constant for a particular machine model and can be used to determine relative performance differences between machines.
Signed-off-by Martin Schwidefsky <[email protected]>
---
arch/s390/Kconfig | 4 -- arch/s390/lib/Makefile | 2 - arch/s390/lib/qrnnd.S | 77 ++++++++++++++++++++++++++++++++++++++++++ arch/s390/math-emu/Makefile | 2 - arch/s390/math-emu/math.c | 2 - arch/s390/math-emu/qrnnd.S | 77 ------------------------------------------ arch/s390/math-emu/sfp-util.h | 66 ------------------------------------ drivers/s390/Makefile | 2 + drivers/s390/sysinfo.c | 51 +++++++++++++++++++++++++++ include/asm-s390/sfp-util.h | 66 ++++++++++++++++++++++++++++++++++++ 10 files changed, 198 insertions(+), 151 deletions(-)
arch/s390/Kconfig +0 -4
@@ -34,10 +34,6 @@ config GENERIC_HWEIGHT bool default y -config GENERIC_CALIBRATE_DELAY - bool - default y - config GENERIC_TIME def_bool y
arch/s390/lib/Makefile +1 -1
@@ -4,7 +4,7 @@ EXTRA_AFLAGS := -traditional -lib-y += delay.o string.o uaccess_std.o uaccess_pt.o +lib-y += delay.o string.o uaccess_std.o uaccess_pt.o qrnnd.o lib-$(CONFIG_32BIT) += div64.o lib-$(CONFIG_64BIT) += uaccess_mvcos.o lib-$(CONFIG_SMP) += spinlock.o
arch/s390/lib/qrnnd.S +77 -0
77 lines not on this page · raw message
arch/s390/math-emu/Makefile +1 -1
@@ -2,7 +2,7 @@ # Makefile for the FPU instruction emulation. # -obj-$(CONFIG_MATHEMU) := math.o qrnnd.o +obj-$(CONFIG_MATHEMU) := math.o EXTRA_CFLAGS := -I$(src) -Iinclude/math-emu -w EXTRA_AFLAGS := -traditional
arch/s390/math-emu/math.c +1 -1
@@ -15,7 +15,7 @@#include <asm/uaccess.h> #include <asm/lowcore.h> -#include "sfp-util.h" +#include <asm/sfp-util.h> #include <math-emu/soft-fp.h> #include <math-emu/single.h> #include <math-emu/double.h>
arch/s390/math-emu/qrnnd.S +0 -77
77 lines not on this page · raw message
arch/s390/math-emu/sfp-util.h +0 -66
66 lines not on this page · raw message
drivers/s390/Makefile +2 -0
@@ -2,6 +2,8 @@ # Makefile for the S/390 specific device drivers # +CFLAGS_sysinfo.o += -Iinclude/math-emu -Iarch/s390/math-emu -w + obj-y += s390mach.o sysinfo.o s390_rdev.o obj-y += cio/ block/ char/ crypto/ net/ scsi/
drivers/s390/sysinfo.c +50 -1
68 lines not on this page · raw message
include/asm-s390/sfp-util.h +66 -0
66 lines not on this page · raw message