mmiotrace: code style cleanups

From c2da03771e29159627c5c7b9509ec70bce9f91ee Mon Sep 17 00:00:00 2001
From: Pekka Paalanen <pq@iki.fi>
Date: Mon, 28 Apr 2008 21:25:22 +0300

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Pekka Paalanen 2008-05-12 21:21:03 +02:00 committed by Thomas Gleixner
parent 6f6f394d9c
commit 970e6fa038
4 changed files with 7 additions and 12 deletions

View file

@ -17,10 +17,10 @@
#include <linux/percpu.h>
#include <linux/kdebug.h>
#include <linux/mutex.h>
#include <asm/io.h>
#include <linux/io.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
#include <asm/errno.h>
#include <linux/errno.h>
#include <asm/debugreg.h>
#include <linux/mmiotrace.h>

View file

@ -24,7 +24,7 @@
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <linux/io.h>
#include <linux/version.h>
#include <linux/kallsyms.h>
#include <asm/pgtable.h>
@ -418,12 +418,11 @@ static void enter_uniprocessor(void)
for_each_cpu_mask(cpu, downed_cpus) {
err = cpu_down(cpu);
if (!err) {
if (!err)
pr_info(NAME "CPU%d is down.\n", cpu);
} else {
else
pr_err(NAME "Error taking CPU%d down: %d\n", cpu, err);
}
}
if (num_online_cpus() > 1)
pr_warning(NAME "multiple CPUs still online, "
"may miss events.\n");

View file

@ -2,7 +2,7 @@
* Written by Pekka Paalanen, 2008 <pq@iki.fi>
*/
#include <linux/module.h>
#include <asm/io.h>
#include <linux/io.h>
#define MODULE_NAME "testmmiotrace"

View file

@ -1,9 +1,7 @@
#ifndef MMIOTRACE_H
#define MMIOTRACE_H
#include <asm/types.h>
#ifdef __KERNEL__
#include <linux/types.h>
#include <linux/list.h>
@ -84,6 +82,4 @@ extern void disable_mmiotrace(void);
extern void mmio_trace_rw(struct mmiotrace_rw *rw);
extern void mmio_trace_mapping(struct mmiotrace_map *map);
#endif /* __KERNEL__ */
#endif /* MMIOTRACE_H */