OSDN Git Service

input: fingerprint: Mark IRQ as performance critical
authorSultan Alsawaf <sultan@kerneltoast.com>
Wed, 30 May 2018 00:24:10 +0000 (17:24 -0700)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:01:09 +0000 (18:01 +0800)
In order to improve fingerprint wake performance, mark the fingerprint
reader's IRQ as performance-critical.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
[wight554: apply fpc1020 change on fpc1268 ang goodix]
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
drivers/input/fingerprint/fpc1268_tee/fpc1020_tee.c
drivers/input/fingerprint/goodix_ta/gf_spi.c

index 3e68c96..7d3e229 100644 (file)
@@ -635,7 +635,7 @@ static int fpc1020_probe(struct platform_device *pdev)
 
        atomic_set(&fpc1020->wakeup_enabled, 1);
 
-       fpc1020->irqf = IRQF_TRIGGER_RISING | IRQF_ONESHOT | IRQF_NO_SUSPEND;
+       fpc1020->irqf = IRQF_TRIGGER_RISING | IRQF_ONESHOT | IRQF_NO_SUSPEND | IRQF_PERF_CRITICAL;
        device_init_wakeup(dev, 1);
        mutex_init(&fpc1020->lock);
 
index 5ab80b6..c09b534 100644 (file)
@@ -165,7 +165,7 @@ static int gf_open(struct inode *inode, struct file *filp)
         */
        gf_dev->irq_enabled = true;
        rc = request_threaded_irq(gf_dev->irq, NULL, gf_irq,
-                       IRQF_TRIGGER_RISING | IRQF_ONESHOT,
+                       IRQF_TRIGGER_RISING | IRQF_ONESHOT | IRQF_PERF_CRITICAL,
                        GF_IRQ_NAME, gf_dev);
        if (rc) {
                pr_err("%s: failed to request threaded irq, rc = %d\n", __func__, rc);