nvethernet: change ethernet suspend/resume level

Change suspend_noirq/resume_noirq to suspend/resume
for kernel-5.10. Its observed that facing memory
issues in noirq level.

Bug 200664943

Change-Id: Iece68d11ad947bd30573799f891086eed175f175
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2458118
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Bhadram Varka
2020-12-10 20:41:43 +05:30
committed by Revanth Kumar Uppala
parent 958ea205da
commit c606c85e93

View File

@@ -4655,8 +4655,13 @@ static int ether_resume_noirq(struct device *dev)
} }
static const struct dev_pm_ops ether_pm_ops = { static const struct dev_pm_ops ether_pm_ops = {
#if (KERNEL_VERSION(5, 9, 0) < LINUX_VERSION_CODE)
.suspend = ether_suspend_noirq,
.resume = ether_resume_noirq,
#else
.suspend_noirq = ether_suspend_noirq, .suspend_noirq = ether_suspend_noirq,
.resume_noirq = ether_resume_noirq, .resume_noirq = ether_resume_noirq,
#endif
}; };
#endif #endif