--- zzzz-none-000/linux-4.1.38/drivers/scsi/hosts.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/drivers/scsi/hosts.c 2020-11-25 10:06:48.000000000 +0000 @@ -34,6 +34,10 @@ #include #include +#if defined(CONFIG_BCM_KF_USB_STORAGE) +#include +#endif + #include #include #include @@ -479,6 +483,14 @@ PTR_ERR(shost->ehandler)); goto fail_kfree; } +#if defined(CONFIG_BCM_KF_USB_STORAGE) + /*convert the thread to realtime RR thread */ + { + struct sched_param param; + param.sched_priority = BCM_RTPRIO_DATA; + sched_setscheduler(shost->ehandler, SCHED_RR, ¶m); + } +#endif shost->tmf_work_q = alloc_workqueue("scsi_tmf_%d", WQ_UNBOUND | WQ_MEM_RECLAIM,