diff options
| -rw-r--r-- | arch/x86/platform/uv/tlb_uv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index b8b3a37c80cd..933bea5a601d 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c | |||
| @@ -1463,7 +1463,7 @@ static ssize_t ptc_proc_write(struct file *file, const char __user *user, | |||
| 1463 | } | 1463 | } |
| 1464 | 1464 | ||
| 1465 | if (input_arg == 0) { | 1465 | if (input_arg == 0) { |
| 1466 | elements = sizeof(stat_description)/sizeof(*stat_description); | 1466 | elements = ARRAY_SIZE(stat_description); |
| 1467 | printk(KERN_DEBUG "# cpu: cpu number\n"); | 1467 | printk(KERN_DEBUG "# cpu: cpu number\n"); |
| 1468 | printk(KERN_DEBUG "Sender statistics:\n"); | 1468 | printk(KERN_DEBUG "Sender statistics:\n"); |
| 1469 | for (i = 0; i < elements; i++) | 1469 | for (i = 0; i < elements; i++) |
| @@ -1504,7 +1504,7 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr, | |||
| 1504 | char *q; | 1504 | char *q; |
| 1505 | int cnt = 0; | 1505 | int cnt = 0; |
| 1506 | int val; | 1506 | int val; |
| 1507 | int e = sizeof(tunables) / sizeof(*tunables); | 1507 | int e = ARRAY_SIZE(tunables); |
| 1508 | 1508 | ||
| 1509 | p = instr + strspn(instr, WHITESPACE); | 1509 | p = instr + strspn(instr, WHITESPACE); |
| 1510 | q = p; | 1510 | q = p; |
