diff -druNp --no-dereference linux-libre-4.4.141-gnu/arch/x86/kernel/cpu/common.c linux-libre-4.4.142-gnu/arch/x86/kernel/cpu/common.c
--- linux-libre-4.4.141-gnu/arch/x86/kernel/cpu/common.c	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/arch/x86/kernel/cpu/common.c	2018-07-19 09:35:58.000000000 -0400
@@ -686,13 +686,14 @@ void get_cpu_cap(struct cpuinfo_x86 *c)
 		c->x86_capability[CPUID_1_EDX] = edx;
 	}
 
+	/* Thermal and Power Management Leaf: level 0x00000006 (eax) */
+	if (c->cpuid_level >= 0x00000006)
+		c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006);
+
 	/* Additional Intel-defined flags: level 0x00000007 */
 	if (c->cpuid_level >= 0x00000007) {
 		cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx);
-
 		c->x86_capability[CPUID_7_0_EBX] = ebx;
-
-		c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006);
 		c->x86_capability[CPUID_7_ECX] = ecx;
 	}
 
diff -druNp --no-dereference linux-libre-4.4.141-gnu/Makefile linux-libre-4.4.142-gnu/Makefile
--- linux-libre-4.4.141-gnu/Makefile	2018-07-17 15:33:06.000000000 -0400
+++ linux-libre-4.4.142-gnu/Makefile	2018-07-19 13:01:40.000000000 -0400
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 141
+SUBLEVEL = 142
 EXTRAVERSION = -gnu
 NAME = Blurry Fish Butt
 
diff -druNp --no-dereference linux-libre-4.4.141-gnu/scripts/Kbuild.include linux-libre-4.4.142-gnu/scripts/Kbuild.include
--- linux-libre-4.4.141-gnu/scripts/Kbuild.include	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/scripts/Kbuild.include	2018-07-19 09:35:58.000000000 -0400
@@ -7,6 +7,7 @@ quote   := "
 squote  := '
 empty   :=
 space   := $(empty) $(empty)
+pound   := \#
 
 ###
 # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
@@ -236,11 +237,11 @@ endif
 
 # Replace >$< with >$$< to preserve $ when reloading the .cmd file
 # (needed for make)
-# Replace >#< with >\#< to avoid starting a comment in the .cmd file
+# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
 # (needed for make)
 # Replace >'< with >'\''< to be able to enclose the whole string in '...'
 # (needed for the shell)
-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1)))))
+make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
 
 # Find any prerequisites that is newer than target or that does not exist.
 # PHONY targets skipped in both cases.
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/arch/x86/include/asm/unistd_32.h linux-libre-4.4.142-gnu/tools/arch/x86/include/asm/unistd_32.h
--- linux-libre-4.4.141-gnu/tools/arch/x86/include/asm/unistd_32.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-libre-4.4.142-gnu/tools/arch/x86/include/asm/unistd_32.h	2018-07-19 09:35:58.000000000 -0400
@@ -0,0 +1,9 @@
+#ifndef __NR_perf_event_open
+# define __NR_perf_event_open 336
+#endif
+#ifndef __NR_futex
+# define __NR_futex 240
+#endif
+#ifndef __NR_gettid
+# define __NR_gettid 224
+#endif
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/arch/x86/include/asm/unistd_64.h linux-libre-4.4.142-gnu/tools/arch/x86/include/asm/unistd_64.h
--- linux-libre-4.4.141-gnu/tools/arch/x86/include/asm/unistd_64.h	1969-12-31 19:00:00.000000000 -0500
+++ linux-libre-4.4.142-gnu/tools/arch/x86/include/asm/unistd_64.h	2018-07-19 09:35:58.000000000 -0400
@@ -0,0 +1,9 @@
+#ifndef __NR_perf_event_open
+# define __NR_perf_event_open 298
+#endif
+#ifndef __NR_futex
+# define __NR_futex 202
+#endif
+#ifndef __NR_gettid
+# define __NR_gettid 186
+#endif
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/build/Build.include linux-libre-4.4.142-gnu/tools/build/Build.include
--- linux-libre-4.4.141-gnu/tools/build/Build.include	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/tools/build/Build.include	2018-07-19 09:35:58.000000000 -0400
@@ -12,6 +12,7 @@
 # Convenient variables
 comma   := ,
 squote  := '
+pound   := \#
 
 ###
 # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
@@ -43,11 +44,11 @@ echo-cmd = $(if $($(quiet)cmd_$(1)),\
 ###
 # Replace >$< with >$$< to preserve $ when reloading the .cmd file
 # (needed for make)
-# Replace >#< with >\#< to avoid starting a comment in the .cmd file
+# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
 # (needed for make)
 # Replace >'< with >'\''< to be able to enclose the whole string in '...'
 # (needed for the shell)
-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1)))))
+make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
 
 ###
 # Find any prerequisites that is newer than target or that does not exist.
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/perf/config/Makefile linux-libre-4.4.142-gnu/tools/perf/config/Makefile
--- linux-libre-4.4.141-gnu/tools/perf/config/Makefile	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/tools/perf/config/Makefile	2018-07-19 09:35:58.000000000 -0400
@@ -200,6 +200,7 @@ CFLAGS += -I$(src-perf)/arch/$(ARCH)/inc
 CFLAGS += -I$(srctree)/tools/include/
 CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi
 CFLAGS += -I$(srctree)/arch/$(ARCH)/include
+CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/include
 CFLAGS += -I$(srctree)/include/uapi
 CFLAGS += -I$(srctree)/include
 
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/perf/perf-sys.h linux-libre-4.4.142-gnu/tools/perf/perf-sys.h
--- linux-libre-4.4.141-gnu/tools/perf/perf-sys.h	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/tools/perf/perf-sys.h	2018-07-19 09:35:58.000000000 -0400
@@ -11,29 +11,11 @@
 #if defined(__i386__)
 #define cpu_relax()	asm volatile("rep; nop" ::: "memory");
 #define CPUINFO_PROC	{"model name"}
-#ifndef __NR_perf_event_open
-# define __NR_perf_event_open 336
-#endif
-#ifndef __NR_futex
-# define __NR_futex 240
-#endif
-#ifndef __NR_gettid
-# define __NR_gettid 224
-#endif
 #endif
 
 #if defined(__x86_64__)
 #define cpu_relax()	asm volatile("rep; nop" ::: "memory");
 #define CPUINFO_PROC	{"model name"}
-#ifndef __NR_perf_event_open
-# define __NR_perf_event_open 298
-#endif
-#ifndef __NR_futex
-# define __NR_futex 202
-#endif
-#ifndef __NR_gettid
-# define __NR_gettid 186
-#endif
 #endif
 
 #ifdef __powerpc__
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/perf/util/include/asm/unistd_32.h linux-libre-4.4.142-gnu/tools/perf/util/include/asm/unistd_32.h
--- linux-libre-4.4.141-gnu/tools/perf/util/include/asm/unistd_32.h	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/tools/perf/util/include/asm/unistd_32.h	1969-12-31 19:00:00.000000000 -0500
@@ -1 +0,0 @@
-
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/perf/util/include/asm/unistd_64.h linux-libre-4.4.142-gnu/tools/perf/util/include/asm/unistd_64.h
--- linux-libre-4.4.141-gnu/tools/perf/util/include/asm/unistd_64.h	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/tools/perf/util/include/asm/unistd_64.h	1969-12-31 19:00:00.000000000 -0500
@@ -1 +0,0 @@
-
diff -druNp --no-dereference linux-libre-4.4.141-gnu/tools/scripts/Makefile.include linux-libre-4.4.142-gnu/tools/scripts/Makefile.include
--- linux-libre-4.4.141-gnu/tools/scripts/Makefile.include	2018-07-17 05:31:46.000000000 -0400
+++ linux-libre-4.4.142-gnu/tools/scripts/Makefile.include	2018-07-19 09:35:58.000000000 -0400
@@ -92,3 +92,5 @@ ifneq ($(silent),1)
 	QUIET_INSTALL  = @printf '  INSTALL  %s\n' $1;
   endif
 endif
+
+pound := \#
