kernel: Add kqsort_r()

Obtained-from: FreeBSD
kernel: import pci_find_class() from FreeBSD
Merge branch 'master' into gsocdrm_alter