Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mvme147: fix ram size in comment

The order of ram pages is 3, so the ram size is 2^3 * 4K = 32K.

Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Amos Kong and committed by
David S. Miller
1cff389d 59ae9fc6

+3 -3
+3 -3
drivers/net/ethernet/amd/mvme147.c
··· 26 26 #include <asm/pgtable.h> 27 27 #include <asm/mvme147hw.h> 28 28 29 - /* We have 16834 bytes of RAM for the init block and buffers. This places 29 + /* We have 32K of RAM for the init block and buffers. This places 30 30 * an upper limit on the number of buffers we can use. NetBSD uses 8 Rx 31 - * buffers and 2 Tx buffers. 31 + * buffers and 2 Tx buffers, it takes (8 + 2) * 1544 bytes. 32 32 */ 33 33 #define LANCE_LOG_TX_BUFFERS 1 34 34 #define LANCE_LOG_RX_BUFFERS 3 ··· 111 111 dev->dev_addr); 112 112 113 113 lp = netdev_priv(dev); 114 - lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */ 114 + lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ 115 115 if (!lp->ram) { 116 116 printk("%s: No memory for LANCE buffers\n", dev->name); 117 117 free_netdev(dev);