Updated from Linux LTS 3.10.24 to 3.10.25
This commit is contained in:
@@ -94,6 +94,8 @@ static inline u8 FAN_TO_REG(long rpm, int div)
|
||||
{
|
||||
if (rpm <= 0)
|
||||
return 255;
|
||||
if (rpm > 1350000)
|
||||
return 1;
|
||||
return clamp_val((1350000 + rpm * div / 2) / (rpm * div), 1, 254);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user