132 |
mecho "Disabled hardware performance counter NMIs ..." |
mecho "Disabled hardware performance counter NMIs ..." |
133 |
echo 2 > /proc/sys/kernel/perf_counter_paranoid |
echo 2 > /proc/sys/kernel/perf_counter_paranoid |
134 |
fi |
fi |
135 |
|
if [ $(echo ${KERNEL_VERSION%%-*} | sed 's:\.::g') -ge 2639 ] |
136 |
|
then |
137 |
|
# fixes NMI warnings with kernels >=2.6.31: |
138 |
|
# vboxdrv: Warning: 2.6.31+ kernel detected. Most likely the hardware performance |
139 |
|
# vboxdrv: counter framework which can generate NMIs is active. |
140 |
|
mecho "Disabled hardware performance counter NMIs ..." |
141 |
|
echo 2 > /proc/sys/kernel/perf_event_paranoid |
142 |
|
fi |
143 |
else |
else |
144 |
echo -e ${COLRED} |
echo -e ${COLRED} |
145 |
echo "Your current running kernel does not match the the module target." |
echo "Your current running kernel does not match the the module target." |