aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorManuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de>2011-06-16 08:10:40 -0400
committerRoland Dreier <roland@purestorage.com>2011-07-19 00:18:39 -0400
commit3cbe182a5b443c4a06a8ddaf13057cbd893963c7 (patch)
tree9bdf420e3b760e46d0913d7f0b8dbbb0955e6ff3 /drivers/infiniband/hw
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc (diff)
RDMA/cxgb4: Use printk_ratelimited() instead of printk_ratelimit()
Since printk_ratelimit() shouldn't be used anymore (see comment in include/linux/printk.h), replace it with printk_ratelimited(). Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/cxgb4/resource.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/cxgb4/resource.c b/drivers/infiniband/hw/cxgb4/resource.c
index 4fb50d58b493..407ff3924150 100644
--- a/drivers/infiniband/hw/cxgb4/resource.c
+++ b/drivers/infiniband/hw/cxgb4/resource.c
@@ -37,6 +37,7 @@
37#include <linux/spinlock.h> 37#include <linux/spinlock.h>
38#include <linux/errno.h> 38#include <linux/errno.h>
39#include <linux/genalloc.h> 39#include <linux/genalloc.h>
40#include <linux/ratelimit.h>
40#include "iw_cxgb4.h" 41#include "iw_cxgb4.h"
41 42
42#define RANDOM_SIZE 16 43#define RANDOM_SIZE 16
@@ -311,8 +312,8 @@ u32 c4iw_pblpool_alloc(struct c4iw_rdev *rdev, int size)
311{ 312{
312 unsigned long addr = gen_pool_alloc(rdev->pbl_pool, size); 313 unsigned long addr = gen_pool_alloc(rdev->pbl_pool, size);
313 PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size); 314 PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size);
314 if (!addr && printk_ratelimit()) 315 if (!addr)
315 printk(KERN_WARNING MOD "%s: Out of PBL memory\n", 316 printk_ratelimited(KERN_WARNING MOD "%s: Out of PBL memory\n",
316 pci_name(rdev->lldi.pdev)); 317 pci_name(rdev->lldi.pdev));
317 return (u32)addr; 318 return (u32)addr;
318} 319}
@@ -373,8 +374,8 @@ u32 c4iw_rqtpool_alloc(struct c4iw_rdev *rdev, int size)
373{ 374{
374 unsigned long addr = gen_pool_alloc(rdev->rqt_pool, size << 6); 375 unsigned long addr = gen_pool_alloc(rdev->rqt_pool, size << 6);
375 PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size << 6); 376 PDBG("%s addr 0x%x size %d\n", __func__, (u32)addr, size << 6);
376 if (!addr && printk_ratelimit()) 377 if (!addr)
377 printk(KERN_WARNING MOD "%s: Out of RQT memory\n", 378 printk_ratelimited(KERN_WARNING MOD "%s: Out of RQT memory\n",
378 pci_name(rdev->lldi.pdev)); 379 pci_name(rdev->lldi.pdev));
379 return (u32)addr; 380 return (u32)addr;
380} 381}