Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8395
b: refs/heads/master
c: 46308c0
h: refs/heads/master
i:
  8393: 34262ee
  8391: d174abd
v: v3
  • Loading branch information
Domen Puncer authored and Linus Torvalds committed Sep 10, 2005
1 parent 74db520 commit 9f5c474
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80ce45fd961ba8c951adc9857bfda87102b1f5b1
refs/heads/master: 46308c0bbbb066305e0798a2fa03328467a3c7d6
11 changes: 4 additions & 7 deletions trunk/drivers/block/umem.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* - set initialised bit then.
*/

//#define DEBUG /* uncomment if you want debugging info (pr_debug) */
#include <linux/config.h>
#include <linux/sched.h>
#include <linux/fs.h>
Expand All @@ -58,10 +59,6 @@
#include <asm/uaccess.h>
#include <asm/io.h>

#define PRINTK(x...) do {} while (0)
#define dprintk(x...) do {} while (0)
/*#define dprintk(x...) printk(x) */

#define MM_MAXCARDS 4
#define MM_RAHEAD 2 /* two sectors */
#define MM_BLKSIZE 1024 /* 1k blocks */
Expand Down Expand Up @@ -299,7 +296,7 @@ static void mm_start_io(struct cardinfo *card)

/* make the last descriptor end the chain */
page = &card->mm_pages[card->Active];
PRINTK("start_io: %d %d->%d\n", card->Active, page->headcnt, page->cnt-1);
pr_debug("start_io: %d %d->%d\n", card->Active, page->headcnt, page->cnt-1);
desc = &page->desc[page->cnt-1];

desc->control_bits |= cpu_to_le32(DMASCR_CHAIN_COMP_EN);
Expand Down Expand Up @@ -532,7 +529,7 @@ static void process_page(unsigned long data)
activate(card);
} else {
/* haven't finished with this one yet */
PRINTK("do some more\n");
pr_debug("do some more\n");
mm_start_io(card);
}
out_unlock:
Expand All @@ -555,7 +552,7 @@ static void process_page(unsigned long data)
static int mm_make_request(request_queue_t *q, struct bio *bio)
{
struct cardinfo *card = q->queuedata;
PRINTK("mm_make_request %ld %d\n", bh->b_rsector, bh->b_size);
pr_debug("mm_make_request %ld %d\n", bh->b_rsector, bh->b_size);

bio->bi_phys_segments = bio->bi_idx; /* count of completed segments*/
spin_lock_irq(&card->lock);
Expand Down

0 comments on commit 9f5c474

Please sign in to comment.