From df3a86ace315115d3abf1c9520683991f4ec0091 Mon Sep 17 00:00:00 2001
From: David Plowman <david.plowman@raspberrypi.com>
Date: Thu, 4 Feb 2021 09:34:53 +0000
Subject: ipa: raspberrypi: ccm: Remove unnecessary atomic variable

SetSaturation() gets called synchronously so there is no need for
saturation_ to be atomic.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/ipa/raspberrypi/controller/rpi/ccm.hpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/ipa/raspberrypi/controller')

diff --git a/src/ipa/raspberrypi/controller/rpi/ccm.hpp b/src/ipa/raspberrypi/controller/rpi/ccm.hpp
index fcf077e7..330ed51f 100644
--- a/src/ipa/raspberrypi/controller/rpi/ccm.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/ccm.hpp
@@ -7,7 +7,6 @@
 #pragma once
 
 #include <vector>
-#include <atomic>
 
 #include "../ccm_algorithm.hpp"
 #include "../pwl.hpp"
@@ -70,7 +69,7 @@ public:
 
 private:
 	CcmConfig config_;
-	std::atomic<double> saturation_;
+	double saturation_;
 };
 
 } // namespace RPiController
-- 
cgit v1.2.1