History log of /dragonfly/sys/kern/kern_sensors.c (Results 1 – 25 of 32)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3, v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0
# d314b0e9 11-Oct-2017 Sascha Wildner <saw@online.de>

kernel: Simplify various redundant conditions.

Found-by: cppcheck

One was reported by dcb in <https://bugs.dragonflybsd.org/issues/3078>.


Revision tags: v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc
# 282f3194 11-Jan-2017 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Incidental MPLOCK removal

* Remove misc #include <sys/mplock2.h> statements that are no longer needed.

* Replace mplock with acct_lock in kern_acct.c

* Replace mplock with msg_token in sy

kernel - Incidental MPLOCK removal

* Remove misc #include <sys/mplock2.h> statements that are no longer needed.

* Replace mplock with acct_lock in kern_acct.c

* Replace mplock with msg_token in sysv_msg.c

* Replace mplock with p->p_token in the profiling code.

show more ...


Revision tags: v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc
# b750642b 10-Aug-2015 Sascha Wildner <saw@online.de>

kernel/sysctl: Rename SYSCTL_ASSERT_XLOCKED -> SYSCTL_ASSERT_LOCKED.

6f1a15dc79a822710cc37e99f6a8bd9910e5e3f1 added shared locking and the
macro is intended to cover both cases, so use a better name.


Revision tags: v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc
# a6f507cc 05-Jun-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensors: By default, stick sensor tasks to the first cpu package


# f8f01153 04-Jun-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensors: Accept -1 as sensor thread cpuid

The task will be register to the default sensor thread.


# f95d9b17 04-Jun-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensors: Create per-cpu sensor task threads

So that accessing to sensor device could be properly cpu localized,
e.g. accessing coretemp(4) could be localized to a proper cpu core,
and accessing ecc(

sensors: Create per-cpu sensor task threads

So that accessing to sensor device could be properly cpu localized,
e.g. accessing coretemp(4) could be localized to a proper cpu core,
and accessing ecc(4) could be localized to a proper cpu package.

show more ...


# 1c05a629 07-Apr-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Stick sensors thread to the last CPU.

Round-robin CPU assignment could stick the sensors thread to CPU0,
which has many special tasks.

Submitted-by: YRabbit


# 2dc01a00 30-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Expose max id of sensor device through hw.sensors.dev_idmax

There could be so many sensor devices that MAXSENSORDEVICES is far
from enough, e.g. coretemp.


# 27305eac 30-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Fix sensor device numbering

Always use the lowest available sensor device number.


# dfb94396 30-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Fix sysctl tree creation

This allows:
- Attach sensor after installing sensor device.
- Detach sensor without de-installing sensor device.


# 2ce2b389 26-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Save OID of sensordev sysctl tree.

And allow sensordev sysctl tree registration to fail instead of panic,
e.g. upon duplicated sensordevs.


# e50eb75e 26-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Use sysctl lock

Original devlist lock is not MPSAFE (it's locked find then unlocked
used). Since sensors are sysctl centric, we could just use sysctl
lock here.


# c1bc662c 23-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: sensor_task_schedule() should always be locked


# 1bedd63a 22-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Allocate task w/ M_WAITOK

And now sensor_task_register() will not fail.


# 8dc374fa 22-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Create task thread through SYSINIT


# dfe185cf 21-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Function renaming and remove unnecessary comment.


# b9bbe984 21-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Remove the NOSYSCTL8HACK ifndef test

NOSYSCTL8HACK is always not defined on DragonFly.


# a6a80759 21-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Staticize internal global variables


# 72a4f168 21-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: volatile is unnecessary for running

This fields are changed/checked w/ lock held.


# 8ef41b85 21-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensors: Staticize internal functions


# 161d4e60 21-Mar-2015 Sepherosa Ziehau <sephe@dragonflybsd.org>

sensor: Utilize LOCK_INITIALIZER

The cmpset for lock initialization is _not_ safe (it requires at least
3 states and a spin loop, which is obviously an overkill when compared
w/ LOCK_INITIALIZER).


Revision tags: v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0
# ba87a4ab 24-Aug-2014 Sascha Wildner <saw@online.de>

kernel/spinlock: Add a description to struct spinlock.

And add it to spin_init() and SPINLOCK_INITIALIZER().

Submitted-by: dclink (see <http://bugs.dragonflybsd.org/issues/2714>)
OK'd-by: dill

kernel/spinlock: Add a description to struct spinlock.

And add it to spin_init() and SPINLOCK_INITIALIZER().

Submitted-by: dclink (see <http://bugs.dragonflybsd.org/issues/2714>)
OK'd-by: dillon

show more ...


Revision tags: v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.7.0
# cec73927 05-Sep-2013 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Change time_second to time_uptime for all expiration calculations

* Vet the entire kernel and change use cases for expiration calculations
using time_second to use time_uptime instead.

*

kernel - Change time_second to time_uptime for all expiration calculations

* Vet the entire kernel and change use cases for expiration calculations
using time_second to use time_uptime instead.

* Protects these expiration calculations from step changes in the wall time,
particularly needed for route table entries.

* Probably requires further variable type adjustments but the use of
time_uptime instead if time_second is highly unlikely to ever overrun
any demotions to int still present.

show more ...


Revision tags: v3.4.3, v3.4.2, v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2, v3.0.1, v3.1.0, v3.0.0
# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2, v2.3.1, v2.2.1, v2.2.0, v2.3.0, v2.1.1, v2.0.1
# e7b4468c 05-Jan-2008 Sascha Wildner <swildner@dragonflybsd.org>

For kmalloc(), MALLOC() and contigmalloc(), use M_ZERO instead of
explicitly bzero()ing.

Reviewed-by: sephe


12