Remove obsolete EXACT_TS support
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
please apply to 2.6. zatm will now compile on smp. it might actually work if someone had some hardware to test it.
[atm]: [zatm] convert cli() to spinlock
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1597 -> 1.1598
# drivers/atm/zatm.c 1.13 -> 1.14
# drivers/atm/uPD98402.c 1.4 -> 1.5
# drivers/atm/zatm.h 1.2 -> 1.3
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/07/31 [email protected] 1.1598
# [zatm] convert cli() to spinlock
# --------------------------------------------
#
drivers/atm/uPD98402.c +6 -6
@@ -27,6 +27,7 @@struct k_sonet_stats sonet_stats;/* link diagnostics */ unsigned char framing;/* SONET/SDH framing */ int loop_mode;/* loopback mode */ +spinlock_t lock; };
@@ -71,14 +72,13 @@default :return -EINVAL ; } -save_flags (flags); -cli (); +spin_lock_irqsave (&PRIV (dev)->lock, flags);PUT (set[0 ],C11T );PUT (set[1 ],C12T );PUT (set[2 ],C13T );PUT ((GET (MDR ) & ~uPD98402_MDR_SS_MASK) | (set[3 ] << uPD98402_MDR_SS_SHIFT),MDR ); -restore_flags (flags); +spin_unlock_irqrestore (&PRIV (dev)->lock, flags);return 0 ; }
@@ -88,12 +88,11 @@unsigned long flags;unsigned char s[3 ]; -save_flags (flags); -cli (); +spin_lock_irqsave (&PRIV (dev)->lock, flags); s[0 ] =GET (C11R ); s[1 ] =GET (C12R ); s[2 ] =GET (C13R ); -restore_flags (flags); +spin_unlock_irqrestore (&PRIV (dev)->lock, flags);return (put_user (s[0 ], arg) ||put_user (s[1 ], arg+1 ) ||put_user (s[2 ], arg+2 ) ||put_user (0xff , arg+3 ) ||put_user (0xff , arg+4 ) ||put_user (0xff , arg+5 )) ? -EFAULT :0 ;
@@ -214,6 +213,7 @@DPRINTK ("phy_start\n" );if (!(PRIV (dev) =kmalloc (sizeof (struct uPD98402_priv ),GFP_KERNEL )))return -ENOMEM ; +spin_lock_init (&PRIV (dev)->lock);memset (&PRIV (dev)->sonet_stats,0 ,sizeof (struct k_sonet_stats )); (void )GET (PCR );/* clear performance events */ PUT (uPD98402_PFM_FJ,PCMR );/* ignore frequency adj */
drivers/atm/zatm.c +44 -57
330 lines not on this page · raw message
drivers/atm/zatm.h +1 -0
@@ -85,6 +85,7 @@unsigned char irq;/* IRQ */ unsigned int base;/* IO base address */ struct pci_dev *pci_dev;/* PCI stuff */ +spinlock_t lock; };
David S. Miller
AppliedQuoted 2 lines · On Thu, 31 Jul 2003 10:23:58 -0400 chas williams <[email protected]> wrote:
please apply to 2.6. zatm will now compile on smp. it might actually work if someone had some hardware to test it.
Applied.