Revision 8ea959a17fe6e27f7954dddad5b17b0e33f0d7ee authored by Deepthi Dharwar on 03 October 2012, 18:42:18 UTC, committed by Benjamin Herrenschmidt on 17 October 2012, 23:57:24 UTC
smt_snooze_delay was designed to  delay idle loop's nap entry
in the native idle code before it got  ported over to use as part of
the cpuidle framework.

A -ve value  assigned to smt_snooze_delay should result in
busy looping, in other words disabling the entry to nap state.

	- https://lists.ozlabs.org/pipermail/linuxppc-dev/2010-May/082450.html

This particular functionality can be achieved currently by
echo 1 > /sys/devices/system/cpu/cpu*/state1/disable
but it is broken when one assigns -ve value to  the smt_snooze_delay
variable either via sysfs entry or ppc64_cpu util.

This patch aims to fix this, by disabling nap state when smt_snooze_delay
variable is set to -ve value.

Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 817deb0
History
File Mode Size
cluster
dlm
dlmfs
Kconfig -rw-r--r-- 2.4 KB
Makefile -rw-r--r-- 1.0 KB
acl.c -rw-r--r-- 11.3 KB
acl.h -rw-r--r-- 1.0 KB
alloc.c -rw-r--r-- 187.0 KB
alloc.h -rw-r--r-- 11.7 KB
aops.c -rw-r--r-- 53.0 KB
aops.h -rw-r--r-- 3.8 KB
blockcheck.c -rw-r--r-- 16.3 KB
blockcheck.h -rw-r--r-- 3.8 KB
buffer_head_io.c -rw-r--r-- 10.4 KB
buffer_head_io.h -rw-r--r-- 2.4 KB
dcache.c -rw-r--r-- 14.5 KB
dcache.h -rw-r--r-- 2.1 KB
dir.c -rw-r--r-- 115.7 KB
dir.h -rw-r--r-- 3.9 KB
dlmglue.c -rw-r--r-- 113.5 KB
dlmglue.h -rw-r--r-- 5.8 KB
export.c -rw-r--r-- 6.2 KB
export.h -rw-r--r-- 1.0 KB
extent_map.c -rw-r--r-- 23.2 KB
extent_map.h -rw-r--r-- 2.8 KB
file.c -rw-r--r-- 66.6 KB
file.h -rw-r--r-- 2.6 KB
heartbeat.c -rw-r--r-- 3.4 KB
heartbeat.h -rw-r--r-- 1.5 KB
inode.c -rw-r--r-- 39.4 KB
inode.h -rw-r--r-- 6.1 KB
ioctl.c -rw-r--r-- 23.1 KB
ioctl.h -rw-r--r-- 330 bytes
journal.c -rw-r--r-- 57.3 KB
journal.h -rw-r--r-- 22.0 KB
localalloc.c -rw-r--r-- 33.3 KB
localalloc.h -rw-r--r-- 2.0 KB
locks.c -rw-r--r-- 3.4 KB
locks.h -rw-r--r-- 1.1 KB
mmap.c -rw-r--r-- 5.1 KB
mmap.h -rw-r--r-- 134 bytes
move_extents.c -rw-r--r-- 27.2 KB
move_extents.h -rw-r--r-- 758 bytes
namei.c -rw-r--r-- 59.9 KB
namei.h -rw-r--r-- 1.5 KB
ocfs1_fs_compat.h -rw-r--r-- 2.9 KB
ocfs2.h -rw-r--r-- 23.8 KB
ocfs2_fs.h -rw-r--r-- 50.6 KB
ocfs2_ioctl.h -rw-r--r-- 6.9 KB
ocfs2_lockid.h -rw-r--r-- 3.2 KB
ocfs2_lockingver.h -rw-r--r-- 959 bytes
ocfs2_trace.h -rw-r--r-- 75.7 KB
quota.h -rw-r--r-- 4.3 KB
quota_global.c -rw-r--r-- 27.0 KB
quota_local.c -rw-r--r-- 35.9 KB
refcounttree.c -rw-r--r-- 112.9 KB
refcounttree.h -rw-r--r-- 4.2 KB
reservations.c -rw-r--r-- 20.4 KB
reservations.h -rw-r--r-- 5.3 KB
resize.c -rw-r--r-- 15.9 KB
resize.h -rw-r--r-- 1.1 KB
slot_map.c -rw-r--r-- 12.2 KB
slot_map.h -rw-r--r-- 1.4 KB
stack_o2cb.c -rw-r--r-- 11.5 KB
stack_user.c -rw-r--r-- 23.2 KB
stackglue.c -rw-r--r-- 16.8 KB
stackglue.h -rw-r--r-- 8.9 KB
suballoc.c -rw-r--r-- 76.5 KB
suballoc.h -rw-r--r-- 7.1 KB
super.c -rw-r--r-- 69.2 KB
super.h -rw-r--r-- 1.6 KB
symlink.c -rw-r--r-- 2.7 KB
symlink.h -rw-r--r-- 1.3 KB
sysfile.c -rw-r--r-- 4.6 KB
sysfile.h -rw-r--r-- 1.1 KB
uptodate.c -rw-r--r-- 17.7 KB
uptodate.h -rw-r--r-- 3.0 KB
ver.c -rw-r--r-- 1.2 KB
ver.h -rw-r--r-- 1000 bytes
xattr.c -rw-r--r-- 193.8 KB
xattr.h -rw-r--r-- 3.6 KB

back to top