From 7e4d14b364956b6756b62fc5e6ae4b1487e1bc3c Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sat, 25 Jun 2016 08:47:35 +1000 Subject: Timebase quirk for slow simulators like AWAN and SIMICS This will internally pretend the timebase is running 1000 times slower, which reduces some otherwise really terrible delays in some simulators. Signed-off-by: Benjamin Herrenschmidt Acked-by: Michael Neuling [stewart@linux.vnet.ibm.com: move cfam_chipid cleanup into own patch] Signed-off-by: Stewart Smith --- hdata/test/hdata_to_dt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hdata/test') diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c index 2ed683e..86fdf5c 100644 --- a/hdata/test/hdata_to_dt.c +++ b/hdata/test/hdata_to_dt.c @@ -46,6 +46,8 @@ static void *ntuple_addr(const struct spira_ntuple *n); #define __this_cpu ((struct cpu_thread *)NULL) #define zalloc(expr) calloc(1, (expr)) +unsigned long tb_hz = 512000000; + /* Don't include processor-specific stuff. */ #define __PROCESSOR_H #define PVR_TYPE(_pvr) _pvr -- cgit v1.1