summaryrefslogtreecommitdiff
path: root/recipes-core/nv-conf/files/nv-conf.sh
blob: 3b342579d8e88b36d5fbd2c713b812df5a9f985a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# NVIDIA specific init script

# power state
if [ -e /sys/power/state ]; then
	chmod 0666 /sys/power/state
fi

# turn off low-power core migration for now
if [ -e /sys/module/cpu_tegra3/parameters/no_lp ] ; then
	echo Y > /sys/module/cpu_tegra3/parameters/no_lp
fi

# enable CPU hot-plugging
if [ -e /sys/module/cpu_tegra3/parameters/auto_hotplug ] ; then
	echo 1 > /sys/module/cpu_tegra3/parameters/auto_hotplug
fi

# lp2 idle state
if [ -e /sys/module/cpuidle/parameters/lp2_in_idle ] ; then
	echo "Y" > /sys/module/cpuidle/parameters/lp2_in_idle
fi

exit 0