Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3580648pxb; Mon, 25 Jan 2021 22:13:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3zjgMlm7Yk//4HOWf1wnefteiuIfH4JgJRWNcDbX0MDJldUTGpdEb/o542Jzo3atUplkd X-Received: by 2002:a05:6402:1398:: with SMTP id b24mr3182636edv.108.1611641636047; Mon, 25 Jan 2021 22:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611641636; cv=none; d=google.com; s=arc-20160816; b=HdHdf39lsh/1h3XTIXmOtQ90EQQUPa1KKLp2bL+eGW08qey08NcUrUN3ZxCKtpWshH 4wjg1pcPXQKqLB4D4kilBXv/MbI1R5DK5Vs1cOi1awQWkAN7DVb2bAeaeA9u6Vjd+nmu gK/guTKmFyWV6ryKKMjSVaSLoWYg3bpNfiuja68MCr0J/OHWVOomC6WLcsyRK/mo5QUg tzIIFrPLVA9OQZf99Y6duQt72Y5FBFWhd0gLcZwzcdiaLnW9nc7KQfGQS6atuU2WKRWN 0Z8AKQdJke1G6iW2cLMdbtrCPUFa0lUDjivdqOa/WtsSc6b7Q69f5RFJRSgH+IRnQiPP tUcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hM/b/XGcvs4Dw1tgaHiDWLqnY29FFdGZW1BkxJIIpjs=; b=VPc1rs0pCzFyzoxSrSCTOBSYWEk7mNe8e6EOS4NKSlRasRWyEtv+sP56+i/+Lx4iqR 0/dbuOa2jE0I3GDYtQyj1Bqf0+SPP62D+vmn+3EQ4BA3qUROui6l7JHSu20R1XbK7l4c DXa1u/BPeYjiotzvKy/M/DuUHglTywCdUU9C6gceOG51D7oeug4UQEAfYUcKLJH1oeML YuDpO1BpvBVqGsIMU3n+K+E2gDzsqPMgKLvsBvc+sLcON5S4G3l4cpm69UD4An4EQbUr Fny9it1q8WpK5ymsiiwgs37cG6u3gYwGcoKbYPm5WDiKagACv9Zmq5TdZP1Di/+snnPH Vn7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=iW5KV97D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq38si6320991ejc.21.2021.01.25.22.13.32; Mon, 25 Jan 2021 22:13:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=iW5KV97D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730354AbhAZGLV (ORCPT + 99 others); Tue, 26 Jan 2021 01:11:21 -0500 Received: from mail.skyhub.de ([5.9.137.197]:41000 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbhAYNH6 (ORCPT ); Mon, 25 Jan 2021 08:07:58 -0500 Received: from zn.tnic (p200300ec2f09db0060c9c38025ffa6e4.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:db00:60c9:c380:25ff:a6e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 391751EC04DF; Mon, 25 Jan 2021 14:05:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1611579946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=hM/b/XGcvs4Dw1tgaHiDWLqnY29FFdGZW1BkxJIIpjs=; b=iW5KV97DEZ9rLsBVUgyizPmOVC1yrAZzQwdRId9gQ42MxN2yN9hwbu8Wx8oU5j0CNpjDTR 8zbV8S+gfSdv2d2SAbaUMGlwlXD7lQJgjdNZP5z0YZojHT5OGCVkjKDKjSoJnKh06OmRtm s6Uw7OavL3taMDv4jKNYA/4mwV1+cfA= From: Borislav Petkov To: X86 ML Cc: Zhang Rui , Daniel Lezcano , Amit Kucheria , linux-pm@vger.kernel.org, LKML Subject: [PATCH v2 0/2] Move ...mce/therm_throt.c to drivers/thermal/ Date: Mon, 25 Jan 2021 14:05:31 +0100 Message-Id: <20210125130533.19938-1-bp@alien8.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Hi, here's v2 which addresses peterz's comments to patch 2. @thermal folks, lemme know if you have any objections otherwise I'll route this through the tip tree. Thx. Changelog: ========== v1: so this has come up a bunch of times in the past and PeterZ is right - that thing doesn't have anything to do with the MCE glue so move it where it belongs. Thx. Borislav Petkov (2): x86/mce: Get rid of mcheck_intel_therm_init() thermal: Move therm_throt there from x86/mce arch/x86/Kconfig | 4 -- arch/x86/include/asm/irq.h | 4 ++ arch/x86/include/asm/mce.h | 22 ----------- arch/x86/include/asm/thermal.h | 21 ++++++++++ arch/x86/kernel/cpu/intel.c | 3 ++ arch/x86/kernel/cpu/mce/Makefile | 2 - arch/x86/kernel/cpu/mce/core.c | 1 - arch/x86/kernel/cpu/mce/intel.c | 1 - arch/x86/kernel/irq.c | 29 ++++++++++++++ drivers/thermal/intel/Kconfig | 4 ++ drivers/thermal/intel/Makefile | 1 + .../thermal/intel}/therm_throt.c | 39 +++---------------- drivers/thermal/intel/x86_pkg_temp_thermal.c | 3 +- 13 files changed, 70 insertions(+), 64 deletions(-) create mode 100644 arch/x86/include/asm/thermal.h rename {arch/x86/kernel/cpu/mce => drivers/thermal/intel}/therm_throt.c (96%) -- 2.29.2