diff options
author | Tony Luck <tony.luck@intel.com> | 2008-10-17 16:47:53 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-10-17 16:47:53 -0400 |
commit | a9894a4a3c7fb53258d46dafe9dd4f45369fd9dd (patch) | |
tree | 9c82955ea3039980ad3432ccb1801cdb66e112c5 | |
parent | 26e9a397774a0e94efbb8a0bf4a952c28d808cab (diff) |
[IA64] Fix annoying IA64_TR_ALLOC_MAX message.
Madison cpus support 64 TR registers. Increase IA64_TR_ALLOC_MAX
to 64. Also fixup the messages that get printed when this limit
is exceeded. Repeating for every cpu is too noisy.
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | arch/ia64/include/asm/kregs.h | 2 | ||||
-rw-r--r-- | arch/ia64/mm/tlb.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/arch/ia64/include/asm/kregs.h b/arch/ia64/include/asm/kregs.h index aefcdfee7f23..39e65f6639f5 100644 --- a/arch/ia64/include/asm/kregs.h +++ b/arch/ia64/include/asm/kregs.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define IA64_TR_CURRENT_STACK 1 /* dtr1: maps kernel's memory- & register-stacks */ | 32 | #define IA64_TR_CURRENT_STACK 1 /* dtr1: maps kernel's memory- & register-stacks */ |
33 | 33 | ||
34 | #define IA64_TR_ALLOC_BASE 2 /* itr&dtr: Base of dynamic TR resource*/ | 34 | #define IA64_TR_ALLOC_BASE 2 /* itr&dtr: Base of dynamic TR resource*/ |
35 | #define IA64_TR_ALLOC_MAX 32 /* Max number for dynamic use*/ | 35 | #define IA64_TR_ALLOC_MAX 64 /* Max number for dynamic use*/ |
36 | 36 | ||
37 | /* Processor status register bits: */ | 37 | /* Processor status register bits: */ |
38 | #define IA64_PSR_BE_BIT 1 | 38 | #define IA64_PSR_BE_BIT 1 |
diff --git a/arch/ia64/mm/tlb.c b/arch/ia64/mm/tlb.c index 8caf42471f0d..bd9818a36b47 100644 --- a/arch/ia64/mm/tlb.c +++ b/arch/ia64/mm/tlb.c | |||
@@ -362,9 +362,13 @@ ia64_tlb_init (void) | |||
362 | per_cpu(ia64_tr_num, cpu) = | 362 | per_cpu(ia64_tr_num, cpu) = |
363 | vm_info_1.pal_vm_info_1_s.max_dtr_entry+1; | 363 | vm_info_1.pal_vm_info_1_s.max_dtr_entry+1; |
364 | if (per_cpu(ia64_tr_num, cpu) > IA64_TR_ALLOC_MAX) { | 364 | if (per_cpu(ia64_tr_num, cpu) > IA64_TR_ALLOC_MAX) { |
365 | static int justonce = 1; | ||
365 | per_cpu(ia64_tr_num, cpu) = IA64_TR_ALLOC_MAX; | 366 | per_cpu(ia64_tr_num, cpu) = IA64_TR_ALLOC_MAX; |
366 | printk(KERN_DEBUG "TR register number exceeds IA64_TR_ALLOC_MAX!" | 367 | if (justonce) { |
367 | "IA64_TR_ALLOC_MAX should be extended\n"); | 368 | justonce = 0; |
369 | printk(KERN_DEBUG "TR register number exceeds " | ||
370 | "IA64_TR_ALLOC_MAX!\n"); | ||
371 | } | ||
368 | } | 372 | } |
369 | } | 373 | } |
370 | 374 | ||