Extirpate IRQF_SAMPLE_REMOVE from the kernel
Subsystems (20)
cover Extirpate IRQF_SAMPLE_REMOVE from the kernel
This set of changes is fairly straight forward; if there are no objections, I plan to carry these in the random.git tree for the next merge window.
- Ted
Theodore Ts'o (17):
mfd: remove IRQF_SAMPLE_RANDOM which is now a no-op input/serio/hp_sdc.c: remove IRQF_SAMPLE_RANDOM which is now a no-op
i2c-pmcmsp: remove IRQF_SAMPLE_RANDOM which is now a no-op
pda_power: remove IRQF_SAMPLE_RANDOM which is now a no-op
n2_crypto: remove IRQF_SAMPLE_RANDOM which is now a no-op
xen-blkfront: remove IRQF_SAMPLE_RANDOM which is now a no-op
drivers: hv: remove IRQF_SAMPLE_RANDOM which is now a no-op
uartlite: remove IRQF_SAMPLE_RANDOM which is now a no-op
goku_udc: remove IRQF_SAMPLE_RANDOM which was commented out
omap_udc: remove IRQF_SAMPLE_RANDOM which is now a no-op
pxa25x_udc: remove IRQF_SAMPLE_RANDOM which is now a no-op
isp1301_omap: remove IRQF_SAMPLE_RANDOM which is now a no-op
board-palmz71: remove IRQF_SAMPLE_RANDOM which is now a no-op [ARM] pxa: remove IRQF_SAMPLE_RANDOM which is now a no-op sparc/ldc: remove IRQF_SAMPLE_RANDOM which is now a no-op
um: remove IRQF_SAMPLE_RANDOM which is now a no-op
random: final removal of IRQF_SAMPLE_RANDOM
Documentation/feature-removal-schedule.txt | 14 -------------- arch/arm/mach-omap1/board-palmz71.c | 3 +-- arch/arm/mach-pxa/lubbock.c | 2 +- arch/arm/mach-pxa/magician.c | 5 ++--- arch/arm/mach-pxa/trizeps4.c | 4 ++-- arch/sparc/kernel/ldc.c | 6 ++---- arch/um/drivers/line.c | 13 ++++++------- arch/um/drivers/mconsole_kern.c | 3 +-- arch/um/drivers/port_kern.c | 6 ++---- arch/um/drivers/random.c | 3 +-- arch/um/drivers/xterm_kern.c | 3 +-- arch/um/kernel/sigio.c | 3 +-- drivers/block/xen-blkfront.c | 5 ++--- drivers/crypto/n2_core.c | 3 +-- drivers/hv/vmbus_drv.c | 3 +-- drivers/i2c/busses/i2c-pmcmsp.c | 3 +-- drivers/input/serio/hp_sdc.c | 2 +- drivers/mfd/tps65010.c | 3 +-- drivers/power/pda_power.c | 6 +----- drivers/tty/serial/uartlite.c | 3 +-- drivers/usb/gadget/goku_udc.c | 2 +- drivers/usb/gadget/omap_udc.c | 4 ++-- drivers/usb/gadget/pxa25x_udc.c | 12 ++++-------- drivers/usb/otg/isp1301_omap.c | 1 - include/linux/interrupt.h | 2 -- 25 files changed, 36 insertions(+), 78 deletions(-)
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 2/17 input/serio/hp_sdc.c: remove IRQF_SAMPLE_RANDOM which is now a no-op
With the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/input/serio/hp_sdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/serio/hp_sdc.c +1 -1
@@ -878,7 +878,7 @@ static int __init hp_sdc_init(void)#endif errstr ="IRQ not available for" ; -if (request_irq (hp_sdc.irq, &hp_sdc_isr,IRQF_SHARED |IRQF_SAMPLE_RANDOM , +if (request_irq (hp_sdc.irq, &hp_sdc_isr,IRQF_SHARED ,"HP SDC" , &hp_sdc)) goto err1;
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 1/17 mfd: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/mfd/tps65010.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mfd/tps65010.c +1 -2
@@ -563,8 +563,7 @@ static int tps65010_probe(struct i2c_client *client,*/ if (client->irq >0 ) { status =request_irq (client->irq, tps65010_irq, -IRQF_SAMPLE_RANDOM |IRQF_TRIGGER_FALLING , -DRIVER_NAME , tps); +IRQF_TRIGGER_FALLING ,DRIVER_NAME , tps);if (status <0 ) {dev_dbg (&client->dev,"can't get IRQ %d, err %d\n" , client->irq, status);
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 4/17 pda_power: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/power/pda_power.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/power/pda_power.c +1 -5
@@ -24,11 +24,7 @@static inline unsigned int get_irq_flags (struct resource *res) { -unsigned int flags =IRQF_SAMPLE_RANDOM |IRQF_SHARED ; - - flags |= res->flags &IRQF_TRIGGER_MASK ; - -return flags; +return IRQF_SHARED | (res->flags &IRQF_TRIGGER_MASK ); }static struct device *dev;
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 3/17 i2c-pmcmsp: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/i2c/busses/i2c-pmcmsp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/i2c/busses/i2c-pmcmsp.c +1 -2
@@ -306,8 +306,7 @@ static int __devinit pmcmsptwi_probe(struct platform_device *pldev) pmcmsptwi_data.irq =platform_get_irq (pldev,0 );if (pmcmsptwi_data.irq) { rc =request_irq (pmcmsptwi_data.irq, &pmcmsptwi_interrupt, -IRQF_SHARED |IRQF_SAMPLE_RANDOM , - pldev->name, &pmcmsptwi_data); +IRQF_SHARED , pldev->name, &pmcmsptwi_data);if (rc ==0 ) {/* * Enable 'DONE' interrupt only.
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 17/17 random: final removal of IRQF_SAMPLE_RANDOM
In reply to Theodore Ts'oThe IRQF_SAMPLE_RANDOM flag is finally gone from the kernel tree, only three years late. :-)
--- Documentation/feature-removal-schedule.txt | 14 -------------- include/linux/interrupt.h | 2 -- 2 files changed, 16 deletions(-)
Documentation/feature-removal-schedule.txt +0 -14
@@ -70,20 +70,6 @@ Who: Luis R. Rodriguez <[email protected]> --------------------------- -What: IRQF_SAMPLE_RANDOM -Check: IRQF_SAMPLE_RANDOM -When: July 2009 - -Why: Many of IRQF_SAMPLE_RANDOM users are technically bogus as entropy - sources in the kernel's current entropy model. To resolve this, every - input point to the kernel's entropy pool needs to better document the - type of entropy source it actually is. This will be replaced with - additional add_*_randomness functions in drivers/char/random.c - -Who: Robin Getz <[email protected]> & Matt Mackall <[email protected]> - ---------------------------- - What: The ieee80211_regdom module parameter When: March 2010 / desktop catchup
include/linux/interrupt.h +0 -2
@@ -42,7 +42,6 @@* * IRQF_DISABLED - keep irqs disabled when calling the action handler. * DEPRECATED. This flag is a NOOP and scheduled to be removed -* IRQF_SAMPLE_RANDOM - irq is used to feed the random generator * IRQF_SHARED - allow sharing the irq among several devices * IRQF_PROBE_SHARED - set by callers when they expect sharing mismatches to occur * IRQF_TIMER - Flag to mark this interrupt as timer interrupt
@@ -61,7 +60,6 @@* resume time. */ #define IRQF_DISABLED 0x00000020 -#define IRQF_SAMPLE_RANDOM 0x00000040#define IRQF_SHARED 0x00000080#define IRQF_PROBE_SHARED 0x00000100#define __IRQF_TIMER 0x00000200
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 7/17 drivers: hv: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hv/vmbus_drv.c +1 -2
@@ -545,8 +545,7 @@ static int vmbus_bus_init(int irq)if (ret) goto err_cleanup; - ret =request_irq (irq, vmbus_isr,IRQF_SAMPLE_RANDOM , - driver_name, hv_acpi_dev); + ret =request_irq (irq, vmbus_isr,0 , driver_name, hv_acpi_dev);if (ret !=0 ) { pr_err("Unable to request IRQ %d\n",
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 8/17 uartlite: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/tty/serial/uartlite.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/tty/serial/uartlite.c +1 -2
@@ -216,8 +216,7 @@ static int ulite_startup(struct uart_port *port) {int ret; - ret =request_irq (port->irq, ulite_isr, -IRQF_SHARED |IRQF_SAMPLE_RANDOM ,"uartlite" , port); + ret =request_irq (port->irq, ulite_isr,IRQF_SHARED ,"uartlite" , port);if (ret)return ret;
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 9/17 goku_udc: remove IRQF_SAMPLE_RANDOM which was commented out
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule.
The flag was only commented-out in the driver, but we should just remove it altogether.
--- drivers/usb/gadget/goku_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/goku_udc.c +1 -1
@@ -1836,7 +1836,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)/* init to known state, then setup irqs */ udc_reset (dev);udc_reinit (dev); -if (request_irq (pdev->irq, goku_irq,IRQF_SHARED /*|IRQF_SAMPLE_RANDOM*/ , +if (request_irq (pdev->irq, goku_irq,IRQF_SHARED , driver_name, dev) !=0 ) {DBG (dev,"request interrupt %d failed\n" , pdev->irq); retval = -EBUSY ;
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 10/17 omap_udc: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/usb/gadget/omap_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/omap_udc.c +2 -2
@@ -2944,7 +2944,7 @@ known:/* USB general purpose IRQ: ep0, state changes, dma, etc */ status =request_irq (pdev->resource[1 ].start, omap_udc_irq, -IRQF_SAMPLE_RANDOM , driver_name, udc); +0 , driver_name, udc);if (status !=0 ) {ERR ("can't get irq %d, err %d\n" , (int ) pdev->resource[1 ].start, status);
@@ -2953,7 +2953,7 @@ known:/* USB "non-iso" IRQ (PIO for all but ep0) */ status =request_irq (pdev->resource[2 ].start, omap_udc_pio_irq, -IRQF_SAMPLE_RANDOM ,"omap_udc pio" , udc); +0 ,"omap_udc pio" , udc);if (status !=0 ) {ERR ("can't get irq %d, err %d\n" , (int ) pdev->resource[2 ].start, status);
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 15/17 sparc/ldc: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- arch/sparc/kernel/ldc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
arch/sparc/kernel/ldc.c +2 -4
@@ -1250,14 +1250,12 @@ int ldc_bind(struct ldc_channel *lp, const char *name)snprintf (lp->rx_irq_name,LDC_IRQ_NAME_MAX ,"%s RX" , name);snprintf (lp->tx_irq_name,LDC_IRQ_NAME_MAX ,"%s TX" , name); - err =request_irq (lp->cfg.rx_irq, ldc_rx, -IRQF_SAMPLE_RANDOM |IRQF_DISABLED , + err =request_irq (lp->cfg.rx_irq, ldc_rx,IRQF_DISABLED , lp->rx_irq_name, lp);if (err)return err; - err =request_irq (lp->cfg.tx_irq, ldc_tx, -IRQF_SAMPLE_RANDOM |IRQF_DISABLED , + err =request_irq (lp->cfg.tx_irq, ldc_tx,IRQF_DISABLED , lp->tx_irq_name, lp);if (err) {free_irq (lp->cfg.rx_irq, lp);
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 11/17 pxa25x_udc: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/usb/gadget/pxa25x_udc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/usb/gadget/pxa25x_udc.c +4 -8
@@ -2200,19 +2200,15 @@ static int __init pxa25x_udc_probe(struct platform_device *pdev)#ifdef CONFIG_ARCH_LUBBOCK if (machine_is_lubbock ()) { - retval =request_irq (LUBBOCK_USB_DISC_IRQ , - lubbock_vbus_irq, -IRQF_SAMPLE_RANDOM , - driver_name, dev); + retval =request_irq (LUBBOCK_USB_DISC_IRQ , lubbock_vbus_irq, +0 , driver_name, dev);if (retval !=0 ) {pr_err ("%s: can't get irq %i, err %d\n" , driver_name,LUBBOCK_USB_DISC_IRQ , retval); goto err_irq_lub; } - retval =request_irq (LUBBOCK_USB_IRQ , - lubbock_vbus_irq, -IRQF_SAMPLE_RANDOM , - driver_name, dev); + retval =request_irq (LUBBOCK_USB_IRQ , lubbock_vbus_irq, +0 , driver_name, dev);if (retval !=0 ) {pr_err ("%s: can't get irq %i, err %d\n" , driver_name,LUBBOCK_USB_IRQ , retval);
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 14/17 pxa: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- arch/arm/mach-pxa/lubbock.c | 2 +- arch/arm/mach-pxa/magician.c | 5 ++--- arch/arm/mach-pxa/trizeps4.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-)
arch/arm/mach-pxa/lubbock.c +1 -1
@@ -456,7 +456,7 @@ static int lubbock_mci_init(struct device *dev,init_timer (&mmc_timer); mmc_timer.data = (unsigned long ) data;return request_irq (LUBBOCK_SD_IRQ , lubbock_detect_int, -IRQF_SAMPLE_RANDOM ,"lubbock-sd-detect" , data); +0 ,"lubbock-sd-detect" , data); }static int lubbock_mci_get_ro (struct device *dev)
arch/arm/mach-pxa/magician.c +2 -3
@@ -633,9 +633,8 @@ static struct platform_device bq24022 = {static int magician_mci_init (struct device *dev,irq_handler_t detect_irq,void *data) { -return request_irq (IRQ_MAGICIAN_SD , detect_irq, -IRQF_DISABLED |IRQF_SAMPLE_RANDOM , -"mmc card detect" , data); +return request_irq (IRQ_MAGICIAN_SD , detect_irq,IRQF_DISABLED , +"mmc card detect" , data); }static void magician_mci_exit (struct device *dev,void *data)
arch/arm/mach-pxa/trizeps4.c +2 -2
@@ -332,8 +332,8 @@ static int trizeps4_mci_init(struct device *dev, irq_handler_t mci_detect_int,int err; err =request_irq (TRIZEPS4_MMC_IRQ , mci_detect_int, -IRQF_DISABLED |IRQF_TRIGGER_RISING |IRQF_SAMPLE_RANDOM , -"MMC card detect" , data); +IRQF_DISABLED |IRQF_TRIGGER_RISING , +"MMC card detect" , data);if (err) {printk (KERN_ERR "trizeps4_mci_init: MMC/SD: can't request" "MMC card detect IRQ\n" );
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 12/17 isp1301_omap: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/usb/otg/isp1301_omap.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/otg/isp1301_omap.c +0 -1
@@ -1575,7 +1575,6 @@ isp1301_probe(struct i2c_client *i2c, const struct i2c_device_id *id) isp->irq_type =IRQF_TRIGGER_FALLING ; } - isp->irq_type |=IRQF_SAMPLE_RANDOM ; status =request_irq (i2c->irq, isp1301_irq, isp->irq_type,DRIVER_NAME , isp);if (status <0 ) {
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 13/17 board-palmz71: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- arch/arm/mach-omap1/board-palmz71.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-omap1/board-palmz71.c +1 -2
@@ -288,8 +288,7 @@ palmz71_gpio_setup(int early) }gpio_direction_input (PALMZ71_USBDETECT_GPIO );if (request_irq (gpio_to_irq (PALMZ71_USBDETECT_GPIO ), - palmz71_powercable,IRQF_SAMPLE_RANDOM , -"palmz71-cable" ,NULL )) + palmz71_powercable,0 ,"palmz71-cable" ,NULL ))printk (KERN_ERR "IRQ request for power cable failed!\n" );palmz71_powercable (gpio_to_irq (PALMZ71_USBDETECT_GPIO ),NULL );
Signature · 1 line
1.7.11.1.108.gb129051
David Miller
maintainerRe: [PATCH 15/17] sparc/ldc: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oFrom: Theodore Ts'o <[email protected]>
Date: Tue, 17 Jul 2012 17:32:34 -0400
Quoted 8 lines
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.Signed-off-by "Theodore Ts'o" <[email protected]>
PATCH 6/17 xen-blkfront: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/block/xen-blkfront.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/block/xen-blkfront.c +2 -3
@@ -854,9 +854,8 @@ static int setup_blkring(struct xenbus_device *dev,if (err) goto fail; - err =bind_evtchn_to_irqhandler (info->evtchn, - blkif_interrupt, -IRQF_SAMPLE_RANDOM ,"blkif" , info); + err =bind_evtchn_to_irqhandler (info->evtchn, blkif_interrupt,0 , +"blkif" , info);if (err <=0 ) {xenbus_dev_fatal (dev, err,"bind_evtchn_to_irqhandler failed" );
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 5/17 n2_crypto: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- drivers/crypto/n2_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/crypto/n2_core.c +1 -2
@@ -1610,8 +1610,7 @@ static int spu_map_ino(struct platform_device *dev, struct spu_mdesc_info *ip,sprintf (p->irq_name,"%s-%d" , irq_name, index); -return request_irq (p->irq, handler,IRQF_SAMPLE_RANDOM , - p->irq_name, p); +return request_irq (p->irq, handler,0 , p->irq_name, p); }static struct kmem_cache *queue_cache[2 ];
Signature · 1 line
1.7.11.1.108.gb129051
PATCH 16/17 um: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oWith the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
--- arch/um/drivers/line.c | 13 ++++++------- arch/um/drivers/mconsole_kern.c | 3 +-- arch/um/drivers/port_kern.c | 6 ++---- arch/um/drivers/random.c | 3 +-- arch/um/drivers/xterm_kern.c | 3 +-- arch/um/kernel/sigio.c | 3 +-- 6 files changed, 12 insertions(+), 19 deletions(-)
arch/um/drivers/line.c +6 -7
@@ -362,18 +362,18 @@ static irqreturn_t line_write_interrupt(int irq, void *data)int line_setup_irq (int fd,int input,int output,struct line *line,void *data) {const struct line_driver *driver = line->driver; -int err =0 , flags =IRQF_SHARED |IRQF_SAMPLE_RANDOM ; +int err =0 ;if (input) err =um_request_irq (driver->read_irq, fd,IRQ_READ , - line_interrupt, flags, - driver->read_irq_name, data); + line_interrupt,IRQF_SHARED , + driver->read_irq_name, data);if (err)return err;if (output) err =um_request_irq (driver->write_irq, fd,IRQ_WRITE , - line_write_interrupt, flags, - driver->write_irq_name, data); + line_write_interrupt,IRQF_SHARED , + driver->write_irq_name, data);return err; }
@@ -779,8 +779,7 @@ void register_winch_irq(int fd, int tty_fd, int pid, struct tty_struct *tty, .stack = stack });if (um_request_irq (WINCH_IRQ , fd,IRQ_READ , winch_interrupt, -IRQF_SHARED |IRQF_SAMPLE_RANDOM , -"winch" , winch) <0 ) { +IRQF_SHARED ,"winch" , winch) <0 ) {printk (KERN_ERR "register_winch_irq - failed to register " "IRQ\n" ); goto out_free;
arch/um/drivers/mconsole_kern.c +1 -2
@@ -775,8 +775,7 @@ static int __init mconsole_init(void)register_reboot_notifier (&reboot_notifier); err =um_request_irq (MCONSOLE_IRQ , sock,IRQ_READ , mconsole_interrupt, -IRQF_SHARED |IRQF_SAMPLE_RANDOM , -"mconsole" , (void *)sock); +IRQF_SHARED ,"mconsole" , (void *)sock);if (err) {printk (KERN_ERR "Failed to get IRQ for management console\n" ); goto out;
arch/um/drivers/port_kern.c +2 -4
@@ -100,8 +100,7 @@ static int port_accept(struct port_list *port) .port = port });if (um_request_irq (TELNETD_IRQ , socket[0 ],IRQ_READ , pipe_interrupt, -IRQF_SHARED |IRQF_SAMPLE_RANDOM , -"telnetd" , conn)) { +IRQF_SHARED ,"telnetd" , conn)) {printk (KERN_ERR "port_accept : failed to get IRQ for " "telnetd\n" ); goto out_free;
@@ -184,8 +183,7 @@ void *port_data(int port_num) }if (um_request_irq (ACCEPT_IRQ , fd,IRQ_READ , port_interrupt, -IRQF_SHARED |IRQF_SAMPLE_RANDOM , -"port" , port)) { +IRQF_SHARED ,"port" , port)) {printk (KERN_ERR "Failed to get IRQ for port %d\n" , port_num); goto out_close; }
arch/um/drivers/random.c +1 -2
@@ -131,8 +131,7 @@ static int __init rng_init (void) random_fd = err; err =um_request_irq (RANDOM_IRQ , random_fd,IRQ_READ , random_interrupt, -IRQF_SAMPLE_RANDOM ,"random" , -NULL ); +0 ,"random" ,NULL );if (err) goto err_out_cleanup_hw;
arch/um/drivers/xterm_kern.c +1 -2
@@ -50,8 +50,7 @@ int xterm_fd(int socket, int *pid_out)init_completion (&data->ready); err =um_request_irq (XTERM_IRQ , socket,IRQ_READ , xterm_interrupt, -IRQF_SHARED |IRQF_SAMPLE_RANDOM , -"xterm" , data); +IRQF_SHARED ,"xterm" , data);if (err) {printk (KERN_ERR "xterm_fd : failed to get IRQ for xterm, " "err = %d\n" , err);
arch/um/kernel/sigio.c +1 -2
@@ -25,8 +25,7 @@ int write_sigio_irq(int fd)int err; err =um_request_irq (SIGIO_WRITE_IRQ , fd,IRQ_READ , sigio_interrupt, -IRQF_SAMPLE_RANDOM ,"write sigio" , -NULL ); +0 ,"write sigio" ,NULL );if (err) {printk (KERN_ERR "write_sigio_irq : um_request_irq failed, " "err = %d\n" , err);
Signature · 1 line
1.7.11.1.108.gb129051
Re: [PATCH 05/17] n2_crypto: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 9 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.Signed-off-by "Theodore Ts'o" <[email protected]>Cc Herbert Xu <[email protected]>
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Anton Vorontsov
AppliedRe: [PATCH 04/17] pda_power: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 11 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.Signed-off-by "Theodore Ts'o" <[email protected]>Cc Anton Vorontsov <[email protected]>Cc David Woodhouse <[email protected]>---
Applied, thanks!
Quoted 20 lines
drivers/power/pda_power.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)drivers/power/pda_power.c +1
-5@@ -24,11 +24,7 @@static inline unsigned int get_irq_flags (struct resource *res) { -unsigned int flags =IRQF_SAMPLE_RANDOM |IRQF_SHARED ; - - flags |= res->flags &IRQF_TRIGGER_MASK ; - -return flags; +return IRQF_SHARED | (res->flags &IRQF_TRIGGER_MASK ); }static struct device *dev;
Signature · 2 lines
Anton Vorontsov Email: [email protected]
Re: [PATCH 04/17] pda_power: remove IRQF_SAMPLE_RANDOM which is now a no-op
Quoted 8 lines · Anton Vorontsov
Quoted 7 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
Quoted 6 lines
Quoted 4 lines
Signed-off-by "Theodore Ts'o" <[email protected]>Cc Anton Vorontsov <[email protected]>Cc David Woodhouse <[email protected]>---
Applied, thanks!
My original plan was to carry the patch in the random.git tree, so that it only gets applied after the new random interrupt sampling commit has gone in. If you carry it in your tree, then the /dev/random seeding for your platform will be worse until the random.git tree is merged in.....
- Ted
Re: [PATCH 08/17] uartlite: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Theodore" == Theodore Ts'o <[email protected]> writes:
Theodore> With the changes in the random tree, IRQF_SAMPLE_RANDOM is now a Theodore> no-op; interrupt randomness is now collected unconditionally in a very Theodore> low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM Theodore> flag was scheduled to be removed in 2009 on the
Theodore> feature-removal-schedule, so this patch is preparation for the final Theodore> removal of this flag.
Theodore> Signed-off-by: "Theodore Ts'o" <[email protected]> Theodore> Cc: Peter Korsgaard <[email protected]>
Signature · 1 line
Bye, Peter Korsgaard
Re: [PATCH 04/17] pda_power: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 14 lines · Theodore Ts'o
Quoted 13 lines · Anton Vorontsov
Quoted 11 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.Signed-off-by "Theodore Ts'o" <[email protected]>Cc Anton Vorontsov <[email protected]>Cc David Woodhouse <[email protected]>---
Quoted 7 lines
Quoted 1 line
Applied, thanks!
My original plan was to carry the patch in the random.git tree, so that it only gets applied after the new random interrupt sampling commit has gone in. If you carry it in your tree, then the
/dev/randomseeding for your platform will be worse until the random.git tree is merged in.....
Oh, I see. OK, dropped.
Thanks,
Signature · 2 lines
Anton Vorontsov Email: [email protected]
Re: [PATCH 02/17] input/serio/hp_sdc.c: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 8 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.Signed-off-by "Theodore Ts'o" <[email protected]>
I assume you'll be merging it through random tree with the rest of the patches?
Quoted 20 lines
--- drivers/input/serio/hp_sdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/serio/hp_sdc.c +1
-1@@ -878,7 +878,7 @@ static int __init hp_sdc_init(void)#endif errstr ="IRQ not available for" ; -if (request_irq (hp_sdc.irq, &hp_sdc_isr,IRQF_SHARED |IRQF_SAMPLE_RANDOM , +if (request_irq (hp_sdc.irq, &hp_sdc_isr,IRQF_SHARED ,"HP SDC" , &hp_sdc)) goto err1;Signature · 1 line
1.7.11.1.108.gb129051
Signature · 1 line
Dmitry
RE: [PATCH 07/17] drivers: hv: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 17 lines
-----Original Message-----
From: Theodore Ts'o [mailto:[email protected]]
Sent: Tuesday, July 17, 2012 5:32 PM
To: Linux Kernel Developers List
Cc: Theodore Ts'o; KY Srinivasan; Haiyang Zhang
Subject: [PATCH 07/17] drivers: hv: removeIRQF_SAMPLE_RANDOMwhich is now a no-opWith the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
Quoted 3 lines
Signed-off-by "Theodore Ts'o" <[email protected]>Cc "K. Y. Srinivasan" <[email protected]>Cc Haiyang Zhang <[email protected]>
Regards,
K. Y
Re: [PATCH 02/17] input/serio/hp_sdc.c: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Dmitry TorokhovQuoted 8 lines · Dmitry Torokhov
Quoted 7 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
Quoted 6 lines
Quoted 1 line
Signed-off-by "Theodore Ts'o" <[email protected]>Acked-by Dmitry Torokhov <[email protected]>I assume you'll be merging it through random tree with the rest of the patches?
Yes, correct.
Thanks!!
- Ted
Re: [PATCH 11/17] pxa25x_udc: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 7 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
Quoted 8 lines
Signed-off-by "Theodore Ts'o" <[email protected]>Cc Eric Miao <[email protected]>Cc Russell King <[email protected]>Cc Haojian Zhuang <[email protected]>--- drivers/usb/gadget/pxa25x_udc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
Re: [PATCH 14/17] [ARM] pxa: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 7 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.
Quoted 5 lines
Signed-off-by "Theodore Ts'o" <[email protected]>Cc Eric Miao <[email protected]>Cc Russell King <[email protected]>Cc Haojian Zhuang <[email protected]>---
Re: [PATCH 06/17] xen-blkfront: remove IRQF_SAMPLE_RANDOM which is now a no-op
In reply to Theodore Ts'oQuoted 9 lines · Theodore Ts'o
With the changes in the random tree,
IRQF_SAMPLE_RANDOMis now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit775f4b297b. TheIRQF_SAMPLE_RANDOMflag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag.Signed-off-by "Theodore Ts'o" <[email protected]>Cc Konrad Rzeszutek Wilk <[email protected]>
Quoted 23 lines
Cc Jeremy Fitzhardinge <[email protected]>--- drivers/block/xen-blkfront.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/block/xen-blkfront.c +2
-3@@ -854,9 +854,8 @@ static int setup_blkring(struct xenbus_device *dev,if (err) goto fail; - err =bind_evtchn_to_irqhandler (info->evtchn, - blkif_interrupt, -IRQF_SAMPLE_RANDOM ,"blkif" , info); + err =bind_evtchn_to_irqhandler (info->evtchn, blkif_interrupt,0 , +"blkif" , info);if (err <=0 ) {xenbus_dev_fatal (dev, err,"bind_evtchn_to_irqhandler failed" );Signature · 1 line
1.7.11.1.108.gb129051