android_kernel_xiaomi_sm8350/drivers
Clemens Ladisch ba3f213f8a [PATCH] HPET: make frequency calculations 32 bit safe
On 32-bit architectures, the multiplication in the argument for
hpet_time_div() often overflows.  In the typical case of a 14.32 MHz timer,
this happens when the desired frequency exceeds 61 Hz.

To avoid this multiplication, we can precompute and store the hardware
timer frequency, instead of the period, in the device structure, which
leaves us with a simple division when computing the number of timer ticks.

As a side effect, this also removes a theoretical bug where the timer
interpolator's frequency would be computed as a 32-bit value even if the
HPET frequency is greater than 2^32 Hz (the HPET spec allows up to 10 GHz).

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:29 -08:00
..
acorn
acpi [PATCH] introduce .valid callback for pm_ops 2005-10-30 17:37:15 -08:00
atm
base [PATCH] firmware: fix all kernel-doc warnings 2005-10-30 17:37:25 -08:00
block [PATCH] block cleanups: Fix iosched module refcount leak 2005-10-30 17:37:20 -08:00
bluetooth [Bluetooth] Ignore additional interfaces of BPA 100/105 devices 2005-10-28 19:20:57 +02:00
cdrom
char [PATCH] HPET: make frequency calculations 32 bit safe 2005-10-30 17:37:29 -08:00
connector
cpufreq [PATCH] create and destroy cpufreq sysfs entries based on cpu notifiers 2005-10-30 17:37:14 -08:00
crypto [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
dio
eisa
fc4
firmware [PATCH] Don't set dcdbas driver to default m 2005-10-30 17:37:28 -08:00
hwmon [PATCH] hwmon: smsc47m1 documentation update 2005-10-28 14:02:14 -07:00
i2c [PATCH] I2C: remove devfs support from i2c-dev driver 2005-10-28 14:02:14 -07:00
ide [PATCH] ide-cd mini cleanup of casts 2005-10-30 17:37:23 -08:00
ieee1394 Merge ../bleed-2.6 2005-10-28 10:13:16 -07:00
infiniband [PATCH] missing include in infiniband 2005-10-29 10:35:07 -07:00
input [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
isdn [PATCH] sparse cleanups: NULL pointers, C99 struct init. 2005-10-30 17:37:29 -08:00
macintosh [PATCH] Input: convert drivers/macintosh to dynamic input_dev allocation 2005-10-28 09:52:53 -07:00
mca
md [PATCH] Use sg_set_buf/sg_init_one where applicable 2005-10-30 11:19:43 +11:00
media [PATCH] sparse cleanups: NULL pointers, C99 struct init. 2005-10-30 17:37:29 -08:00
message [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
mfd [PATCH] DRIVER MODEL: Get rid of the obsolete tri-level suspend/resume callbacks 2005-10-28 09:52:56 -07:00
misc
mmc Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
mtd [ARM] Fix Assabet reboot with SA1100 MTD map driver 2005-10-29 16:14:08 +01:00
net [PATCH] sparse cleanups: NULL pointers, C99 struct init. 2005-10-30 17:37:29 -08:00
nubus
oprofile
parisc
parport
pci [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
pcmcia [PATCH] CONFIG_IA32 2005-10-30 17:37:10 -08:00
pnp
s390 [PATCH] s390, ccw - export modalias 2005-10-30 17:37:16 -08:00
sbus
scsi [PATCH] Typo fix: explictly -> explicitly 2005-10-30 17:37:20 -08:00
serial [PATCH] Added a Receive_Abort to the Marvell serial driver 2005-10-30 17:37:25 -08:00
sh
sn
tc Use physical addresses at the interface level, letting drivers remap 2005-10-29 19:31:35 +01:00
telephony
usb [PATCH] Typo fix: dot after newline in printk strings 2005-10-30 17:37:20 -08:00
video [PATCH] fix vgacon blanking 2005-10-30 17:37:26 -08:00
w1
zorro
Kconfig
Makefile [PATCH] USB: move handoff code 2005-10-28 16:47:38 -07:00