From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751952Ab2CJS41 (ORCPT ); Sat, 10 Mar 2012 13:56:27 -0500 Received: from acsinet15.oracle.com ([141.146.126.227]:32941 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456Ab2CJS4S (ORCPT ); Sat, 10 Mar 2012 13:56:18 -0500 From: Konrad Rzeszutek Wilk To: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, linux-acpi@vger.kernel.org, lenb@kernel.org Cc: rjw@sisk.pl, joseph.cihula@intel.com Subject: [PATCH] cleanup: Replace tboot specific calls in ACPI with function call. Date: Sat, 10 Mar 2012 13:52:04 -0500 Message-Id: <1331405526-25952-1-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 1.7.7.5 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090208.4F5BA3C6.005B,ss=1,re=0.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please consider these two patches for v3.4. I've posted these in the past and they don't differ any from the previous postings. The majority of changes has been suggested by Rafael Wysocki and Joseph Cihula has ACK-ed the patches. The net gain of these patches is to remove the 'tboot' call within the ACPI core framwork and replace it with an function call where the platform drivers can register if they choose to. This makes it possible for platforms such as ARM, IA64 to choose whether they want to make a call to something similar to tboot or not. If nothing is registered the call ends up being a nop. arch/x86/kernel/tboot.c | 9 ++++++--- drivers/acpi/acpica/hwsleep.c | 10 +++++++--- drivers/acpi/osl.c | 24 ++++++++++++++++++++++++ include/acpi/acexcep.h | 1 + include/linux/acpi.h | 10 ++++++++++ include/linux/tboot.h | 1 - 6 files changed, 48 insertions(+), 7 deletions(-) Konrad Rzeszutek Wilk (1): tboot: Add return values for tboot_sleep Tang Liang (1): x86, acpi, tboot: Have a ACPI os prepare sleep instead of calling tboot_sleep.