misc: tegra-throughput: prevent race on init
authorIlan Aelion <iaelion@nvidia.com>
Sun, 5 Aug 2012 12:56:40 +0000 (06:56 -0600)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 10 Aug 2012 06:25:23 +0000 (11:25 +0530)
commite043dadf34ef4e7ea3eb04ad845860c0e55e52cb
treee40d1fe27fddcfe8528106c1df028bd094e20cff
parent1499080ec5feb08aa3d180352f8072dcbc254ace
misc: tegra-throughput: prevent race on init

prevent a race condition on initialization which could result in
multiple notifier registrations.

Bug 1027664

Change-Id: I2e7dcad159f631a7e244d43019169fdaf195bc34
(cherry picked from commit 06ad60cd85a221eec673654c73d55fba34455a3a)
Reviewed-on: http://git-master/r/121143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>
drivers/misc/tegra-throughput.c