* [Linux-ia64] DRM compile fix
@ 2002-08-26 11:40 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2002-08-26 11:40 UTC (permalink / raw)
To: linux-ia64
The struct page does not have a wait queue any more.
--- linux/drivers/char/drm/r128_cce.c.~1~
+++ linux/drivers/char/drm/r128_cce.c
@@ -685,10 +685,10 @@ int r128_do_cleanup_cce( drm_device_t *d
if( !dev_priv->is_pci && dev->agp->agp_info.chipset = INTEL_460GX ) {
unsigned long alt_rh_off (unsigned long) dev_priv->ring.head;
+ struct page *p = virt_to_page((void *)alt_rh_off);
- atomic_dec(&virt_to_page(alt_rh_off)->count);
- clear_bit(PG_locked, &virt_to_page(alt_rh_off)->flags);
- wake_up(&virt_to_page(alt_rh_off)->wait);
+ put_page(p);
+ unlock_page(p);
free_page(alt_rh_off);
}
#endif
--- linux/drivers/char/drm/radeon_cp.c.~1~
+++ linux/drivers/char/drm/radeon_cp.c
@@ -1028,10 +1028,10 @@ int radeon_do_cleanup_cp( drm_device_t *
if( !dev_priv->is_pci && dev->agp->agp_info.chipset = INTEL_460GX ) {
unsigned long alt_rh_off (unsigned long) dev_priv->ring.head;
+ struct page *p = virt_to_page((void *)alt_rh_off);
- atomic_dec(&virt_to_page(alt_rh_off)->count);
- clear_bit(PG_locked, &virt_to_page(alt_rh_off)->flags);
- wake_up(&virt_to_page(alt_rh_off)->wait);
+ put_page(p);
+ unlock_page(p);
free_page(alt_rh_off);
}
#endif
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-26 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-26 11:40 [Linux-ia64] DRM compile fix Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox