git: cputimer/intr: Move powersaving intr cputimer switching to kern_cputimer.c

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sat Feb 1 06:25:17 PST 2014


commit e80ea40997deef845c8a8bec0a9dfb5640e567c1
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sat Feb 1 21:15:53 2014 +0800

    cputimer/intr: Move powersaving intr cputimer switching to kern_cputimer.c
    
    While I'm here fix several bugs:
    - Don't take ERESTART as error
    - Use serializer to protect the number of power saving request.  Using
      atomic_fetchadd_int is not enough here:
      The first power saving request could fail.  However, before its failure,
      other power saving request could be successful, since the intr cputimer
      switch is skipped.

Summary of changes:
 sys/dev/acpica/acpi_cpu_cstate.c | 42 ++++-----------------------
 sys/kern/kern_cputimer.c         | 63 ++++++++++++++++++++++++++++++++++++++++
 sys/sys/systimer.h               |  2 ++
 3 files changed, 71 insertions(+), 36 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e80ea40997deef845c8a8bec0a9dfb5640e567c1


-- 
DragonFly BSD source repository



More information about the Commits mailing list