cpucontrol: use CPUCTL_UPDATE ioctl on correct file descriptor

I guess that means that microcode update has never worked for AMD CPUs.
Please also note that only older AMD CPUs and micrcode file format are
supported anyway (pre 10h family).

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2012-06-03 08:30:00 +00:00
parent 7adc598a15
commit 4ced504bff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236504

View File

@ -160,7 +160,7 @@ amd_update(const char *dev, const char *path)
args.data = fw_image;
args.size = st.st_size;
error = ioctl(fd, CPUCTL_UPDATE, &args);
error = ioctl(devfd, CPUCTL_UPDATE, &args);
if (error < 0) {
fprintf(stderr, "failed.\n");
warn("ioctl()");