Remove threads

This converts phosphor-pid-control into an async
single threaded application. The reason for doing this
is on our systems phosphor-pid-control had the largest
VSZ when viewed under top. Before this patch the VSZ
was at 50720, after it is at 7760.

Tested-by: Could still interact with all interfaces
under rest-dbus and sensor override worked to ramp fans
when changing cpu temps.

Change-Id: Ie0a837bdf0d1b1df61dc7aff87e5d503b9e0e875
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/Makefile.am b/Makefile.am
index 9375ea6..241878c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,11 +55,9 @@
 swampd_SOURCES = main.cpp util.cpp
 swampd_LDADD = \
 	$(SDBUSPLUS_LIBS) \
-	$(PTHREAD_LIBS) \
 	libswampd.la
 swampd_CXXFLAGS = \
 	$(SDBUSPLUS_CFLAGS) \
-	$(PTHREAD_CFLAGS) \
 	$(CODE_COVERAGE_CXXFLAGS)
 
 noinst_LTLIBRARIES = libswampd.la
@@ -102,9 +100,8 @@
 	pid/buildjson.cpp \
 	pid/zone.cpp \
 	pid/util.cpp \
-	pid/pidthread.cpp \
+	pid/pidloop.cpp \
 	pid/tuning.cpp \
-	threads/busthread.cpp \
 	build/buildjson.cpp \
 	experiments/drive.cpp