mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
hwmon: (pwm-fan) disable threaded interrupts
The interrupt handler here just increments an atomic counter, jumping to a threaded handler risks missing tachometer pulses and is likely to be more expensive than the simple atomic increment. Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> Link: https://lore.kernel.org/r/20250410180357.2258822-1-jkeeping@inmusicbrands.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
7e581c193b
commit
5659108384
|
|
@ -620,8 +620,8 @@ static int pwm_fan_probe(struct platform_device *pdev)
|
|||
if (tach->irq == -EPROBE_DEFER)
|
||||
return tach->irq;
|
||||
if (tach->irq > 0) {
|
||||
ret = devm_request_irq(dev, tach->irq, pulse_handler, 0,
|
||||
pdev->name, tach);
|
||||
ret = devm_request_irq(dev, tach->irq, pulse_handler,
|
||||
IRQF_NO_THREAD, pdev->name, tach);
|
||||
if (ret) {
|
||||
dev_err(dev,
|
||||
"Failed to request interrupt: %d\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user