History log of /haiku/src/add-ons/kernel/drivers/power/acpi_thermal/acpi_thermal.c
Revision Date Author Comments
# cccb5efb 27-Feb-2024 Oscar Lesta <oscar.lesta@gmail.com>

acpi_{ac,lid,thermal}: avoid SMAP related KDLs.

While these three worked just fine on my old Atom N450 based netbook,
all caused:

"PANIC: SMAP violation user-mapped address [...] touched from kernel [...]"

on a newer netbook with a Celeron N4020 CPU, before this change.

Side note / drivers status:

- acpi_ac works pretty decently on both machines.
- acpi_lid wrongly returns 0 until you close the lid for the first time.
Reports correct values after that, but seems to cause power_daemon's
event loop thread to peg one core to 100%.
- acpi_thermal readings are a mixed bag. Critical temp values Seem OK on
both machines. Current value generally OK on the older machine, very wrong
on the newer (reports 429496728.6 C).

Change-Id: Ia387a0bd5b21bdba1de0f0cd9ded814aa1ecdc26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7432
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 26eb736c 08-Feb-2023 Oscar Lesta <oscar.lesta@gmail.com>

acpi_thermal: report temps in Celsius on acpi_thermal_read()

Change-Id: I94e52acff35a3bde5094b0e14e08443f0b196e5d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6137
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 215b685f 11-Dec-2022 X512 <danger_mail@list.ru>

kernel: Drop non-standard GNU inline assignment syntax

* We needed this previously due to our gcc2 compiled kernel.
* Now that our kernel is always latest gcc, we can move to the
c++20 syntax for inline assignment.
* Improves compatibility with clang, less GNU-specific stuff

Change-Id: Ib7272a0a52554a31e9a0e788fd3f031db9049795
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5898
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# a4c7f6c6 18-Jan-2022 Jérôme Duval <jerome.duval@gmail.com>

acpi_thermal: fix previous commit

sorry for the noise

Change-Id: Ic696f48b87d017492e054641c2b9c61a910fed0b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4871
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 0fc10268 17-Jan-2022 Lt-Henry <quiqueiii@gmail.com>

acpi_thermal: Fix 64-bit warnings

Change-Id: I5ee12a6d07a9ed61d0025c4e9e650da08a1326f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4870
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# e6bb8143 29-Nov-2020 Lt-Henry <quiqueiii@gmail.com>

acpi_thermal: some style corrections

Change-Id: I7194be3b284e2de839afb53037b26fc691984dd7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3442
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 3d0f2eea 28-Nov-2020 Lt-Henry <quiqueiii@gmail.com>

acpi_thermal: get the driver working

Change-Id: Ib0b7de56ef35092da93cc5fa61bdf0cfef41c042
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3440
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 46b4cc56 24-Sep-2009 Philippe Houdoin <philippe.houdoin@gmail.com>

Unbreak acpi_thermal driver.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33281 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 22dcb7a5 07-Jun-2008 Jérôme Duval <korli@users.berlios.de>

Converted acpi_thermal to new driver architecture


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25850 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 66581f37 29-Nov-2006 Jérôme Duval <korli@users.berlios.de>

moved acpi_thermal to new driver API
improved a bit the read output
published the acpi device module
minor cleanup in pci module


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# edf0dcca 18-Sep-2006 Jérôme Duval <korli@users.berlios.de>

added missing api_version symbol
fixed debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18881 a95241bf-73f2-0310-859d-f6bbb57e9c96


# abe0393b 07-Mar-2006 Bryan Varner <bvarner@nowhere.fake>

* acpi bus_manager addition of get_object() functions.
* thermal driver uses get_object to obtain the passive device package.

Need changes to acpi_object_type to handle references... that'll have to come in the near future.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16637 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 90200dfe 01-Mar-2006 Bryan Varner <bvarner@nowhere.fake>

* added the beginnings of an acpi_thermal driver.
* currently should detect thermal zones and allow interrogation of their current and critical (possibly HOT) temps.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46b4cc5651dde8b2eff205cf6d57d0449641f0c9 24-Sep-2009 Philippe Houdoin <philippe.houdoin@gmail.com>

Unbreak acpi_thermal driver.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33281 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 22dcb7a5bf5795b97fd88ba84994e887be7a9e89 07-Jun-2008 Jérôme Duval <korli@users.berlios.de>

Converted acpi_thermal to new driver architecture


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25850 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 66581f37319cb169eb3095496869c7846731282d 29-Nov-2006 Jérôme Duval <korli@users.berlios.de>

moved acpi_thermal to new driver API
improved a bit the read output
published the acpi device module
minor cleanup in pci module


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# edf0dccab51c224b5845128ada853f7bc81a3518 18-Sep-2006 Jérôme Duval <korli@users.berlios.de>

added missing api_version symbol
fixed debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18881 a95241bf-73f2-0310-859d-f6bbb57e9c96


# abe0393b82740ff6ae905a42694bfa88181cb979 07-Mar-2006 Bryan Varner <bvarner@nowhere.fake>

* acpi bus_manager addition of get_object() functions.
* thermal driver uses get_object to obtain the passive device package.

Need changes to acpi_object_type to handle references... that'll have to come in the near future.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16637 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 90200dfec13f22e03b6a5572c51b8ba63c0c5bb0 01-Mar-2006 Bryan Varner <bvarner@nowhere.fake>

* added the beginnings of an acpi_thermal driver.
* currently should detect thermal zones and allow interrogation of their current and critical (possibly HOT) temps.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16562 a95241bf-73f2-0310-859d-f6bbb57e9c96