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: "
|
||||
|
||||
/sbin/modprobe microcode
|
||||
|
||||
lt=0
|
||||
while [ ! -c /dev/cpu/microcode ]; do
|
||||
lt=$[lt+1];
|
||||
[ $lt -gt 5 ] && break;
|
||||
sleep 1;
|
||||
done
|
||||
if [ ! -d /dev/cpu ]; then
|
||||
mkdir /dev/cpu
|
||||
fi
|
||||
/bin/mknod /dev/cpu/microcode c 10 184
|
||||
|
||||
daemon $PROGRAM $ARGUMENTS
|
||||
RETVAL=$?
|
||||
@ -66,6 +63,7 @@ function start ()
|
||||
echo $"$0: kernel does not have microcode device support"
|
||||
fi
|
||||
/sbin/rmmod microcode
|
||||
rm -f /dev/cpu/microcode
|
||||
echo
|
||||
|
||||
[ $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
|
||||
|
||||
%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>
|
||||
- Only enable microcode_ctl service if the CPU is capable.
|
||||
- Prevent microcode_ctl getting restarted multiple times on initlevel change (#141581)
|
||||
|
Loading…
Reference in New Issue
Block a user