diff options
author | Richard Henderson <rth@twiddle.net> | 2013-07-12 19:15:56 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-11-16 19:33:13 -0500 |
commit | fddd87d6e135924b92499917bace103e46c22d00 (patch) | |
tree | 23bbe6a01a32c0ea88f7c2180dbd1f461d822c76 /arch/alpha/kernel/setup.c | |
parent | 994dcf7055df88623d25f3593b931a018a76b502 (diff) |
alpha: Allow HZ to be configured
With the 1024Hz default, we spend 50% of QEMU emulation
processing timer interrupts.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'arch/alpha/kernel/setup.c')
-rw-r--r-- | arch/alpha/kernel/setup.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c index c38d6a1b9066..b20af76f12c1 100644 --- a/arch/alpha/kernel/setup.c +++ b/arch/alpha/kernel/setup.c | |||
@@ -1218,6 +1218,7 @@ show_cpuinfo(struct seq_file *f, void *slot) | |||
1218 | char *systype_name; | 1218 | char *systype_name; |
1219 | char *sysvariation_name; | 1219 | char *sysvariation_name; |
1220 | int nr_processors; | 1220 | int nr_processors; |
1221 | unsigned long timer_freq; | ||
1221 | 1222 | ||
1222 | cpu_index = (unsigned) (cpu->type - 1); | 1223 | cpu_index = (unsigned) (cpu->type - 1); |
1223 | cpu_name = "Unknown"; | 1224 | cpu_name = "Unknown"; |
@@ -1229,6 +1230,12 @@ show_cpuinfo(struct seq_file *f, void *slot) | |||
1229 | 1230 | ||
1230 | nr_processors = get_nr_processors(cpu, hwrpb->nr_processors); | 1231 | nr_processors = get_nr_processors(cpu, hwrpb->nr_processors); |
1231 | 1232 | ||
1233 | #if CONFIG_HZ == 1024 || CONFIG_HZ == 1200 | ||
1234 | timer_freq = (100UL * hwrpb->intr_freq) / 4096; | ||
1235 | #else | ||
1236 | timer_freq = 100UL * CONFIG_HZ; | ||
1237 | #endif | ||
1238 | |||
1232 | seq_printf(f, "cpu\t\t\t: Alpha\n" | 1239 | seq_printf(f, "cpu\t\t\t: Alpha\n" |
1233 | "cpu model\t\t: %s\n" | 1240 | "cpu model\t\t: %s\n" |
1234 | "cpu variation\t\t: %ld\n" | 1241 | "cpu variation\t\t: %ld\n" |
@@ -1254,8 +1261,7 @@ show_cpuinfo(struct seq_file *f, void *slot) | |||
1254 | (char*)hwrpb->ssn, | 1261 | (char*)hwrpb->ssn, |
1255 | est_cycle_freq ? : hwrpb->cycle_freq, | 1262 | est_cycle_freq ? : hwrpb->cycle_freq, |
1256 | est_cycle_freq ? "est." : "", | 1263 | est_cycle_freq ? "est." : "", |
1257 | hwrpb->intr_freq / 4096, | 1264 | timer_freq / 100, timer_freq % 100, |
1258 | (100 * hwrpb->intr_freq / 4096) % 100, | ||
1259 | hwrpb->pagesize, | 1265 | hwrpb->pagesize, |
1260 | hwrpb->pa_bits, | 1266 | hwrpb->pa_bits, |
1261 | hwrpb->max_asn, | 1267 | hwrpb->max_asn, |