clocksource: tegra21: fix sleeping while atomic
authorVinayak Pane <vpane@nvidia.com>
Fri, 31 Oct 2014 02:09:03 +0000 (19:09 -0700)
committerVinayak Pane <vpane@nvidia.com>
Tue, 4 Nov 2014 02:11:05 +0000 (18:11 -0800)
commit5a741a76afc9c6a5dc21831d2cb98dd2b3c2aedb
tree2bcaa1b8e3639152836fc62ad6c4d4e17a7149c6
parent7959d20e9c7fe55be7d3294e50114b15aa641593
clocksource: tegra21: fix sleeping while atomic

cpu notifier is running in atomic context,  setup_irq() can
not be called there. Instead set up irq once and enable/disable
at notifier.

bug 1572628
bug 1573263

Change-Id: I36d372c73d5855f46c818b8d4e31395f56377fa2
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/591919
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
drivers/clocksource/tegra210_timer.c