2009-12-12 00:57:07

by Hartley Sweeten

[permalink] [raw]
Subject: Question: drivers/misc/hdpuftrs

Hello all,

Are the drivers in drivers/misc/hdpuftrs dead?

I can't locate anywhere to enable CONFIG_HDPU_FEATURES. Also, both
hdpu_cpustate.c and hdpu_nexus.c register as platform drivers but I
can't find any users in the mainline tree.

Both drivers seem kind of... ugly...

hdpu_cpustate.c does a lock_kernel() in the open file_operation. Then
does a spin_lock() when checking if the open is O_EXCL.

I'm no expert on locking but the lock_kernel() seems unnecessary.

Regards,
Hartley