Use __getdents instead of __getdirentries in sparc __get_clockfreq_via_proc_openprom.