John Stultz
5de23d435e
proc: add /proc/<pid>/timerslack_ns interface
...
This patch provides a proc/PID/timerslack_ns interface which exposes a
task's timerslack value in nanoseconds and allows it to be changed.
This allows power/performance management software to set timer slack for
other threads according to its policy for the thread (such as when the
thread is designated foreground vs. background activity)
If the value written is non-zero, slack is set to that value. Otherwise
sets it to the default for the thread.
This interface checks that the calling task has permissions to to use
PTRACE_MODE_ATTACH_FSCREDS on the target task, so that we can ensure
arbitrary apps do not change the timer slack for other apps.
Signed-off-by: John Stultz <[email protected] >
Acked-by: Kees Cook <[email protected] >
Cc: Arjan van de Ven <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Oren Laadan <[email protected] >
Cc: Ruchi Kandoi <[email protected] >
Cc: Rom Lemarchand <[email protected] >
Cc: Android Kernel Team <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2016-03-17 15:09:34 -07:00
..
ABI
[media] media: rc: nuvoton: switch attribute wakeup_data to text
2016-03-05 08:22:03 -03:00
accounting
Documentation-getdelays: Apply a recommendation from "checkpatch.pl" in main()
2015-12-24 07:22:32 -07:00
acpi
aoe
arm
ARM: SoC multiplatform code changes for v4.5
2016-01-20 18:03:56 -08:00
arm64
auxdisplay
backlight
blackfin
block
A relatively boring cycle in the docs tree. There's a few kernel-doc
2016-01-17 11:55:07 -08:00
blockdev
bus-devices
cdrom
cgroup-v1
cgroup: rename cgroup documentations
2016-01-11 23:14:51 -05:00
cma
connector
console
cpu-freq
Documentation: cpufreq: intel_pstate: fix typo
2016-02-18 20:31:53 +01:00
cpuidle
cris
crypto
development-process
device-mapper
dm cache: make the 'mq' policy an alias for 'smq'
2016-03-10 17:12:08 -05:00
devicetree
media updates for v4.6-rc1
2016-03-16 18:27:32 -07:00
dmaengine
Merge branch 'topic/async' into for-linus
2016-01-06 15:17:47 +05:30
DocBook
[media] V4L: add Y12I, Y8I and Z16 pixel format documentation
2016-03-03 06:29:42 -03:00
driver-model
dvb
[media] media: change email address
2016-01-25 12:01:08 -02:00
early-userspace
EDID
extcon
fault-injection
fb
features
dma-mapping: always provide the dma_map_ops based implementation
2016-01-20 17:09:18 -08:00
filesystems
proc: add /proc/<pid>/timerslack_ns interface
2016-03-17 15:09:34 -07:00
firmware_class
fmc
fpga
frv
gpio
hid
hwmon
hwmon: Create an NSA320 hardware monitoring driver
2016-03-08 18:40:49 -08:00
i2c
ia64
ide
iio
infiniband
IB: remove in-kernel support for memory windows
2015-12-23 14:29:04 -05:00
input
ioctl
isdn
ja_JP
Documentation: translations: update linux cross reference link
2016-01-11 18:26:58 -07:00
kbuild
kdump
ko_KR
Documentation: translations: update linux cross reference link
2016-01-11 18:26:58 -07:00
laptops
leds
Documentation: leds: Add description of brightness setting API
2016-01-04 09:57:31 +01:00
locking
m68k
memory-devices
metag
mic
mips
misc-devices
mmc
mn10300
mtd
namespaces
netlabel
networking
net: change tcp_syn_retries documentation
2016-01-20 18:55:08 -08:00
nfc
nios2
nvdimm
nvmem
parisc
PCI
pcmcia
phy
platform
power
Merge branches 'pm-pci' and 'pm-core'
2016-01-12 01:10:52 +01:00
powerpc
pps
prctl
pti
ptp
ptp: Add PTP_SYS_OFFSET_PRECISE for driver crosstimestamping
2016-03-03 14:23:43 -08:00
rapidio
RCU
s390
scheduler
scsi
st: Fix MTMKPART to work with newer drives
2016-02-23 21:27:02 -05:00
security
keys, trusted: seal with a TPM2 authorization policy
2015-12-20 15:27:13 +02:00
serial
sh
sound
spi
sysctl
mm: scale kswapd watermarks in proportion to memory
2016-03-17 15:09:34 -07:00
target
thermal
thermal: add description for integral_cutoff unit
2016-01-14 13:29:08 -07:00
timers
hpet: Drop stale URLs
2016-02-17 09:39:56 +01:00
tpm
trace
usb
The chipidea changes for v4.5-rc1
2015-12-26 16:59:14 -08:00
vDSO
video4linux
[media] saa7134: Add support for Snazio TvPVR PRO
2016-03-03 09:03:48 -03:00
virtual
One of the largest releases for KVM... Hardly any generic improvement,
2016-03-16 09:55:35 -07:00
vm
mm: thp: set THP defrag by default to madvise and add a stall-free defrag option
2016-03-17 15:09:34 -07:00
w1
watchdog
Add sun4v_wdt watchdog driver
2016-01-31 11:06:24 -08:00
wimax
x86
Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2016-03-15 10:39:22 -07:00
xtensa
zh_CN
[media] media framework: rename pads init function to media_entity_pads_init()
2016-01-11 12:19:03 -02:00
00-INDEX
adding-syscalls.txt
applying-patches.txt
assoc_array.txt
atomic_ops.txt
bad_memory.txt
basic_profiling.txt
bcache.txt
binfmt_misc.txt
braille-console.txt
bt8xxgpio.txt
btmrvl.txt
BUG-HUNTING
bus-virt-phys-mapping.txt
cachetlb.txt
cgroup-v2.txt
mm: memcontrol: reclaim and OOM kill when shrinking memory.max below usage
2016-03-17 15:09:34 -07:00
Changes
circular-buffers.txt
clk.txt
coccinelle.txt
CodeOfConflict
CodingStyle
Documentation: fix typo in CodingStyle
2016-01-11 18:18:16 -07:00
cpu-hotplug.txt
cpu-load.txt
cputopology.txt
crc32.txt
dcdbas.txt
debugging-modules.txt
debugging-via-ohci1394.txt
dell_rbu.txt
devices.txt
digsig.txt
DMA-API-HOWTO.txt
dma-mapping: always provide the dma_map_ops based implementation
2016-01-20 17:09:18 -08:00
DMA-API.txt
DMA-API: fix confusing sentence in Documentation/DMA-API.txt
2016-01-11 18:29:00 -07:00
DMA-attributes.txt
dma-buf-sharing.txt
DMA-ISA-LPC.txt
dontdiff
dynamic-debug-howto.txt
edac.txt
efi-stub.txt
eisa.txt
email-clients.txt
flexible-arrays.txt
futex-requeue-pi.txt
gcov.txt
gdb-kernel-debugging.txt
highuid.txt
HOWTO
hsi.txt
hw_random.txt
hwspinlock.txt
init.txt
initrd.txt
Intel-IOMMU.txt
iommu/vt-d: Fix link to Intel IOMMU Specification
2016-01-29 12:32:12 +01:00
intel_txt.txt
io-mapping.txt
io_ordering.txt
iostats.txt
IPMI.txt
IRQ-affinity.txt
IRQ-domain.txt
IRQ.txt
irqflags-tracing.txt
isapnp.txt
java.txt
kasan.txt
kernel-doc-nano-HOWTO.txt
kernel-docs.txt
Documentation: translations: update linux cross reference link
2016-01-11 18:26:58 -07:00
kernel-parameters.txt
Power management and ACPI material for v4.6-rc1, part 1
2016-03-16 14:10:53 -07:00
kernel-per-CPU-kthreads.txt
kmemcheck.txt
kmemleak.txt
kobject.txt
kprobes.txt
kref.txt
kselftest.txt
ldm.txt
local_ops.txt
lockup-watchdogs.txt
logo.gif
logo.txt
lzo.txt
magic-number.txt
mailbox.txt
Makefile
ManagementStyle
md-cluster.txt
md-cluster: update the documentation
2016-01-06 11:39:06 +11:00
md.txt
memory-barriers.txt
virtio: barrier rework+fixes
2016-01-18 16:44:24 -08:00
memory-hotplug.txt
memory-hotplug: add automatic onlining policy for the newly added memory
2016-03-15 16:55:16 -07:00
men-chameleon-bus.txt
module-signing.txt
mono.txt
nommu-mmap.txt
ntb.txt
numastat.txt
oops-tracing.txt
padata.txt
parport-lowlevel.txt
parport.txt
percpu-rw-semaphore.txt
phy.txt
pi-futex.txt
pinctrl.txt
pnp.txt
preempt-locking.txt
printk-formats.txt
mm, printk: introduce new format string for flags
2016-03-15 16:55:16 -07:00
pwm.txt
ramoops.txt
rbtree.txt
remoteproc.txt
rfkill.txt
robust-futex-ABI.txt
robust-futexes.txt
rpmsg.txt
rtc.txt
rtc: implement a sysfs interface for clock offset
2016-03-14 17:08:16 +01:00
SAK.txt
SecurityBugs
serial-console.txt
sgi-ioc4.txt
SM501.txt
smsc_ece1099.txt
sparse.txt
stable_api_nonsense.txt
stable_kernel_rules.txt
static-keys.txt
SubmitChecklist
SubmittingDrivers
SubmittingPatches
svga.txt
sysfs-rules.txt
sysrq.txt
this_cpu_ops.txt
ubsan.txt
UBSAN: run-time undefined behavior sanity checker
2016-01-20 17:09:18 -08:00
unaligned-memory-access.txt
unicode.txt
unshare.txt
vfio.txt
VGA-softcursor.txt
vgaarbiter.txt
video-output.txt
vme_api.txt
volatile-considered-harmful.txt
workqueue.txt
xillybus.txt
xz.txt
zorro.txt