Messages in this thread Patch in this message | | | From | Matt Mackall <> | Subject | [PATCH 3/14] random: Make CCISS use add_disk_randomness | Date | Fri, 05 May 2006 11:42:34 -0500 |
| |
Make CCISS use add_disk_randomness
Disk devices should use the add_disk_randomness API rather than SA_SAMPLE_RANDOM.
Signed-off-by: Matt Mackall <mpm@selenic.com>
Index: 2.6/drivers/block/cciss.c =================================================================== --- 2.6.orig/drivers/block/cciss.c 2006-05-02 17:29:26.000000000 -0500 +++ 2.6/drivers/block/cciss.c 2006-05-03 11:22:54.000000000 -0500 @@ -1221,6 +1221,7 @@ static void cciss_softirq_done(struct re printk("Done with %p\n", rq); #endif /* CCISS_DEBUG */ + add_disk_randomness(rq->rq_disk); spin_lock_irqsave(&h->lock, flags); end_that_request_last(rq, rq->errors); cmd_free(h, cmd,1); @@ -3152,8 +3153,7 @@ static int __devinit cciss_init_one(stru /* make sure the board interrupts are off */ hba[i]->access.set_intr_mask(hba[i], CCISS_INTR_OFF); if( request_irq(hba[i]->intr[SIMPLE_MODE_INT], do_cciss_intr, - SA_INTERRUPT | SA_SHIRQ | SA_SAMPLE_RANDOM, - hba[i]->devname, hba[i])) { + SA_INTERRUPT | SA_SHIRQ, hba[i]->devname, hba[i])) { printk(KERN_ERR "cciss: Unable to get irq %d for %s\n", hba[i]->intr[SIMPLE_MODE_INT], hba[i]->devname); goto clean2; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |