diff options
| author | Joe Perches <joe@perches.com> | 2009-12-09 13:45:35 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-12-10 02:57:50 -0500 |
| commit | a78d9626f4f6fa7904bfdb071205080743125983 (patch) | |
| tree | 5d5f325ad8ad72a58c5b4cb4dd77392a7c647bf0 /arch | |
| parent | 40685236b3161b80030a4df34bcbc5941ea59876 (diff) | |
x86: i8254.c: Add pr_fmt(fmt)
- Add pr_fmt(fmt) "pit: " fmt
- Strip pit: prefixes from pr_debug
Signed-off-by: Joe Perches <joe@perches.com>
LKML-Reference: <bbd4de532f18bb7c11f64ba20d224c08291cb126.1260383912.git.joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86/kvm/i8254.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index fab7440c9bb2..296aba49472a 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c | |||
| @@ -29,6 +29,8 @@ | |||
| 29 | * Based on QEMU and Xen. | 29 | * Based on QEMU and Xen. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #define pr_fmt(fmt) "pit: " fmt | ||
| 33 | |||
| 32 | #include <linux/kvm_host.h> | 34 | #include <linux/kvm_host.h> |
| 33 | 35 | ||
| 34 | #include "irq.h" | 36 | #include "irq.h" |
| @@ -262,7 +264,7 @@ void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) | |||
| 262 | 264 | ||
| 263 | static void destroy_pit_timer(struct kvm_timer *pt) | 265 | static void destroy_pit_timer(struct kvm_timer *pt) |
| 264 | { | 266 | { |
| 265 | pr_debug("pit: execute del timer!\n"); | 267 | pr_debug("execute del timer!\n"); |
| 266 | hrtimer_cancel(&pt->timer); | 268 | hrtimer_cancel(&pt->timer); |
| 267 | } | 269 | } |
| 268 | 270 | ||
| @@ -284,7 +286,7 @@ static void create_pit_timer(struct kvm_kpit_state *ps, u32 val, int is_period) | |||
| 284 | 286 | ||
| 285 | interval = muldiv64(val, NSEC_PER_SEC, KVM_PIT_FREQ); | 287 | interval = muldiv64(val, NSEC_PER_SEC, KVM_PIT_FREQ); |
| 286 | 288 | ||
| 287 | pr_debug("pit: create pit timer, interval is %llu nsec\n", interval); | 289 | pr_debug("create pit timer, interval is %llu nsec\n", interval); |
| 288 | 290 | ||
| 289 | /* TODO The new value only affected after the retriggered */ | 291 | /* TODO The new value only affected after the retriggered */ |
| 290 | hrtimer_cancel(&pt->timer); | 292 | hrtimer_cancel(&pt->timer); |
| @@ -309,7 +311,7 @@ static void pit_load_count(struct kvm *kvm, int channel, u32 val) | |||
| 309 | 311 | ||
| 310 | WARN_ON(!mutex_is_locked(&ps->lock)); | 312 | WARN_ON(!mutex_is_locked(&ps->lock)); |
| 311 | 313 | ||
| 312 | pr_debug("pit: load_count val is %d, channel is %d\n", val, channel); | 314 | pr_debug("load_count val is %d, channel is %d\n", val, channel); |
| 313 | 315 | ||
| 314 | /* | 316 | /* |
| 315 | * The largest possible initial count is 0; this is equivalent | 317 | * The largest possible initial count is 0; this is equivalent |
| @@ -395,8 +397,8 @@ static int pit_ioport_write(struct kvm_io_device *this, | |||
| 395 | mutex_lock(&pit_state->lock); | 397 | mutex_lock(&pit_state->lock); |
| 396 | 398 | ||
| 397 | if (val != 0) | 399 | if (val != 0) |
| 398 | pr_debug("pit: write addr is 0x%x, len is %d, val is 0x%x\n", | 400 | pr_debug("write addr is 0x%x, len is %d, val is 0x%x\n", |
| 399 | (unsigned int)addr, len, val); | 401 | (unsigned int)addr, len, val); |
| 400 | 402 | ||
| 401 | if (addr == 3) { | 403 | if (addr == 3) { |
| 402 | channel = val >> 6; | 404 | channel = val >> 6; |
