Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123257
b: refs/heads/master
c: 13bd41b
h: refs/heads/master
i:
  123255: 74f8654
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Ingo Molnar committed Dec 16, 2008
1 parent 8daac00 commit 83899ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30cb367ea2be76bf71dbd275f38d0fd3b6f4142b
refs/heads/master: 13bd41bc227a48d6cf8992a3286bf6eba3c71a0c
7 changes: 2 additions & 5 deletions trunk/fs/proc/stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ static int show_stat(struct seq_file *p, void *v)
u64 sum = 0;
struct timespec boottime;
unsigned int per_irq_sum;
struct irq_desc *desc;

user = nice = system = idle = iowait =
irq = softirq = steal = cputime64_zero;
Expand All @@ -47,8 +46,7 @@ static int show_stat(struct seq_file *p, void *v)
guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest);
for_each_irq_nr(j) {
#ifdef CONFIG_SPARSE_IRQ
desc = irq_to_desc(j);
if (!desc)
if (!irq_to_desc(j))
continue;
#endif
sum += kstat_irqs_cpu(j, i);
Expand Down Expand Up @@ -98,8 +96,7 @@ static int show_stat(struct seq_file *p, void *v)
for_each_irq_nr(j) {
per_irq_sum = 0;
#ifdef CONFIG_SPARSE_IRQ
desc = irq_to_desc(j);
if (!desc) {
if (!irq_to_desc(j)) {
seq_printf(p, " %u", per_irq_sum);
continue;
}
Expand Down

0 comments on commit 83899ef

Please sign in to comment.