Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5295055imm; Tue, 16 Oct 2018 08:08:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ciwPoXjhKQZwpbQVLzKJoIUdsaG/QvlBhG88Yh25gdTA4adlbZMI3ylHmY7HR5DTIToeS X-Received: by 2002:a62:184a:: with SMTP id 71-v6mr22419432pfy.246.1539702521586; Tue, 16 Oct 2018 08:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702521; cv=none; d=google.com; s=arc-20160816; b=W/fNeZ/GF7DQNUDxxbK32tG++NixdbxgEH6LVhzPQli7R/kbT87y5wKEqCMOU3VhuH xUmJlzrk1R/UXh6UcY2mJ6nZ3RxUyJe6R/UTW0qDixLZX0NXLVg4679QkScIQkxLtjbp QRlHB4XE2/4985TaObPOg9T+Tt0ofm/VdnPZdRGtL+NF3a9nC723E0mMUR5S8SLwVLv8 t7Nu4AjPYf8DtjWeIuVQ0M5iPk2YwGDI4A2vb8JVlBQ3pPIqu0dr0LN8GowEWWaHQ0OE InCIrn0ipZ3zV9akizDsa5O0UI6BKepDnrf0BJ0nfmh8S+1KFQyKQ1uwczs/qMklIt/V wvBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Oha1FpELz3Hu45C8z8yURlpQaqpADCjmQIovhfq3s2g=; b=zhCI7nMUCMMVoEgeMPRIICfDKkD57I+URC7oQQFGgxyaqW2PlfpLjTGgU9yg3ksj1W o8jg2m5YoYzFL1wjzngRPNWHVMpGvGjBOWRmg00qlDoKri++6oX/LzppuyfFiMFJf+JL hLqvQuy4pGg7UCfSBiWbDpVgswZdqADa0DazTfRme5ieDJtMPfOwVEJY8cfSyn9877fZ VTm6Hlk9725EjPKzfeYhVBkqLBaNRci5Hhd6b1co24u14BAiNzVIZTUCSmFNy+QMc8Ez HvKfGieCrgrnX+U3JvURhGP0M+sixtb4v6twSup80CxawQJ/TeQwOrU2qwTu1PSf/8YR ok/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59-v6si15666050plf.409.2018.10.16.08.08.25; Tue, 16 Oct 2018 08:08:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbeJPW6J (ORCPT + 99 others); Tue, 16 Oct 2018 18:58:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54230 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeJPW6I (ORCPT ); Tue, 16 Oct 2018 18:58:08 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D35D309174F; Tue, 16 Oct 2018 15:07:16 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.150]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0F6F58901; Tue, 16 Oct 2018 15:07:14 +0000 (UTC) From: Jiri Olsa To: lkml Cc: Zhang Rui , Markus Mayer , "Herton R. Krzesinski" Subject: [PATCH 07/10] tools thermal tmon: Use -O3 instead of -O1 if available Date: Tue, 16 Oct 2018 17:06:12 +0200 Message-Id: <20181016150614.21260-8-jolsa@kernel.org> In-Reply-To: <20181016150614.21260-1-jolsa@kernel.org> References: <20181016150614.21260-1-jolsa@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 16 Oct 2018 15:07:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using -O3 instead of -O1 if it's supported by compiler. Cc: Zhang Rui Cc: Markus Mayer Signed-off-by: Jiri Olsa --- tools/thermal/tmon/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index 89a2444c1df2..59e417ec3e13 100644 --- a/tools/thermal/tmon/Makefile +++ b/tools/thermal/tmon/Makefile @@ -6,7 +6,7 @@ VERSION = 1.0 BINDIR=usr/bin WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int -override CFLAGS+= -O1 ${WARNFLAGS} +override CFLAGS+= $(call cc-option,-O3,-O1) ${WARNFLAGS} # Add "-fstack-protector" only if toolchain supports it. override CFLAGS+= $(call cc-option,-fstack-protector-strong) CC?= $(CROSS_COMPILE)gcc -- 2.17.2