diff options
author | Andreas Herrmann <andreas.herrmann3@amd.com> | 2008-06-20 16:04:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-24 07:05:51 -0400 |
commit | 3e9c83b309fd7cbf1d9b801d0d5877c040e30420 (patch) | |
tree | c2501972c89d1a45bd2a71d11e6d5a566e9c56a2 /arch/x86/mm/pat.c | |
parent | 69e26be9b1d0c83d3581475095ce2a1ccc578215 (diff) |
x86: pat.c consolidate error/debug messages in reserve_memtype
... and move last debug message out of locked section.
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Suresh B Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pat.c')
-rw-r--r-- | arch/x86/mm/pat.c | 51 |
1 files changed, 11 insertions, 40 deletions
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index c996a3641200..1118288f8fe2 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
@@ -269,12 +269,6 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
269 | } | 269 | } |
270 | 270 | ||
271 | if (actual_type != entry->type) { | 271 | if (actual_type != entry->type) { |
272 | printk( | ||
273 | KERN_INFO "%s:%d conflicting memory types %Lx-%Lx %s<->%s\n", | ||
274 | current->comm, current->pid, | ||
275 | start, end, | ||
276 | cattr_name(actual_type), | ||
277 | cattr_name(entry->type)); | ||
278 | err = -EBUSY; | 272 | err = -EBUSY; |
279 | break; | 273 | break; |
280 | } | 274 | } |
@@ -290,12 +284,6 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
290 | } | 284 | } |
291 | 285 | ||
292 | if (actual_type != entry->type) { | 286 | if (actual_type != entry->type) { |
293 | printk( | ||
294 | KERN_INFO "%s:%d conflicting memory types %Lx-%Lx %s<->%s\n", | ||
295 | current->comm, current->pid, | ||
296 | start, end, | ||
297 | cattr_name(actual_type), | ||
298 | cattr_name(entry->type)); | ||
299 | err = -EBUSY; | 287 | err = -EBUSY; |
300 | break; | 288 | break; |
301 | } | 289 | } |
@@ -321,12 +309,6 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
321 | } | 309 | } |
322 | 310 | ||
323 | if (actual_type != entry->type) { | 311 | if (actual_type != entry->type) { |
324 | printk( | ||
325 | KERN_INFO "%s:%d conflicting memory types %Lx-%Lx %s<->%s\n", | ||
326 | current->comm, current->pid, | ||
327 | start, end, | ||
328 | cattr_name(actual_type), | ||
329 | cattr_name(entry->type)); | ||
330 | err = -EBUSY; | 312 | err = -EBUSY; |
331 | break; | 313 | break; |
332 | } | 314 | } |
@@ -342,12 +324,6 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
342 | } | 324 | } |
343 | 325 | ||
344 | if (actual_type != entry->type) { | 326 | if (actual_type != entry->type) { |
345 | printk( | ||
346 | KERN_INFO "%s:%d conflicting memory types %Lx-%Lx %s<->%s\n", | ||
347 | current->comm, current->pid, | ||
348 | start, end, | ||
349 | cattr_name(actual_type), | ||
350 | cattr_name(entry->type)); | ||
351 | err = -EBUSY; | 327 | err = -EBUSY; |
352 | break; | 328 | break; |
353 | } | 329 | } |
@@ -367,10 +343,12 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
367 | } | 343 | } |
368 | 344 | ||
369 | if (err) { | 345 | if (err) { |
370 | printk(KERN_INFO | 346 | printk(KERN_INFO "%s:%d conflicting memory types " |
371 | "reserve_memtype failed 0x%Lx-0x%Lx, track %s, req %s\n", | 347 | "%Lx-%Lx %s<->%s\n", current->comm, current->pid, start, |
372 | start, end, cattr_name(new->type), | 348 | end, cattr_name(new->type), cattr_name(entry->type)); |
373 | cattr_name(req_type)); | 349 | printk(KERN_INFO "reserve_memtype failed 0x%Lx-0x%Lx, " |
350 | "track %s, req %s\n", | ||
351 | start, end, cattr_name(new->type), cattr_name(req_type)); | ||
374 | kfree(new); | 352 | kfree(new); |
375 | spin_unlock(&memtype_lock); | 353 | spin_unlock(&memtype_lock); |
376 | return err; | 354 | return err; |
@@ -382,19 +360,12 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type, | |||
382 | dprintk("New Entry\n"); | 360 | dprintk("New Entry\n"); |
383 | } | 361 | } |
384 | 362 | ||
385 | if (new_type) { | ||
386 | dprintk( | ||
387 | "reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s, ret %s\n", | ||
388 | start, end, cattr_name(actual_type), | ||
389 | cattr_name(req_type), cattr_name(*new_type)); | ||
390 | } else { | ||
391 | dprintk( | ||
392 | "reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s\n", | ||
393 | start, end, cattr_name(actual_type), | ||
394 | cattr_name(req_type)); | ||
395 | } | ||
396 | |||
397 | spin_unlock(&memtype_lock); | 363 | spin_unlock(&memtype_lock); |
364 | |||
365 | dprintk("reserve_memtype added 0x%Lx-0x%Lx, track %s, req %s, ret %s\n", | ||
366 | start, end, cattr_name(new->type), cattr_name(req_type), | ||
367 | new_type ? cattr_name(*new_type) : "-"); | ||
368 | |||
398 | return err; | 369 | return err; |
399 | } | 370 | } |
400 | 371 | ||