msm: mdss: Add missing locks in histogram collection for collect enable

The histogram state and collect enable need a spinlock around them when
being read or written to. There were a couple places where the spinlock
wasn't held when the values were being checked. The number of spinlock
accesses has been reduced in collection as well.

Change-Id: I2f7c200c436ec5e062ba11a8208f88af89b25e2d
Signed-off-by: Benet Clark <benetc@codeaurora.org>
1 file changed