create/destroy the /dev/cpu/microcode on demand
This commit is contained in:
parent
5c39a8d890
commit
dd2039b55b
@ -50,13 +50,10 @@ function start ()
|
|||||||
echo -n $"Applying Intel Microcode update: "
|
echo -n $"Applying Intel Microcode update: "
|
||||||
|
|
||||||
/sbin/modprobe microcode
|
/sbin/modprobe microcode
|
||||||
|
if [ ! -d /dev/cpu ]; then
|
||||||
lt=0
|
mkdir /dev/cpu
|
||||||
while [ ! -c /dev/cpu/microcode ]; do
|
fi
|
||||||
lt=$[lt+1];
|
/bin/mknod /dev/cpu/microcode c 10 184
|
||||||
[ $lt -gt 5 ] && break;
|
|
||||||
sleep 1;
|
|
||||||
done
|
|
||||||
|
|
||||||
daemon $PROGRAM $ARGUMENTS
|
daemon $PROGRAM $ARGUMENTS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
@ -66,6 +63,7 @@ function start ()
|
|||||||
echo $"$0: kernel does not have microcode device support"
|
echo $"$0: kernel does not have microcode device support"
|
||||||
fi
|
fi
|
||||||
/sbin/rmmod microcode
|
/sbin/rmmod microcode
|
||||||
|
rm -f /dev/cpu/microcode
|
||||||
echo
|
echo
|
||||||
|
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
|
||||||
|
@ -82,6 +82,9 @@ family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 21 2005 Dave Jones <davej@redhat.com>
|
||||||
|
- Create/remove the /dev/cpu/microcode dev node as needed.
|
||||||
|
|
||||||
* Fri Jan 14 2005 Dave Jones <davej@redhat.com>
|
* Fri Jan 14 2005 Dave Jones <davej@redhat.com>
|
||||||
- Only enable microcode_ctl service if the CPU is capable.
|
- Only enable microcode_ctl service if the CPU is capable.
|
||||||
- Prevent microcode_ctl getting restarted multiple times on initlevel change (#141581)
|
- Prevent microcode_ctl getting restarted multiple times on initlevel change (#141581)
|
||||||
|
Loading…
Reference in New Issue
Block a user