sn_ML_intr.c is a freakin mess]
PATCH 1/1 sn_ML_intr.c is a freakin mess]
----- Forwarded message from Christoph Hellwig <hch> -----
Date: Fri, 26 Sep 2003 11:46:29 +0200
From: Christoph Hellwig <hch>
Subject: Re: [PATCH] sn_ML_intr.c is a freakin mess
To: [email protected], [email protected]
Quoted 1 line · Christoph Hellwig
fed through Lindent and dead codepathes eliminated.
Sorry, wrong patch attached. Here's the right one:
arch/ia64/sn/io/machvec/pci_bus_cvlink.c +6 -2
@@ -438,14 +438,18 @@extern void register_sn_procfs (void );#endif extern void irix_io_init (void ); +extern void sn_init_cpei_timer (void );init_hcl ();irix_io_init ();for (cnode =0 ; cnode < numnodes; cnode++) { -extern void intr_init_vecblk (nodepda_t *npda,cnodeid_t ,int ); -intr_init_vecblk (NODEPDA (cnode), cnode,0 ); +extern void intr_init_vecblk (cnodeid_t ); +intr_init_vecblk (cnode); } + +sn_init_cpei_timer (); +#ifdef CONFIG_PROC_FS register_sn_procfs ();#endif
arch/ia64/sn/io/sn2/ml_SN_intr.c +140 -264
548 lines not on this page · raw message
arch/ia64/sn/io/sn2/shub_intr.c +4 -7
@@ -1,5 +1,4 @@ -/* $Id: shub_intr.c,v 1.1 2002/02/28 17:31:25 marcelo Exp $ -* +/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details.
@@ -61,8 +60,7 @@xwidget_info_t xwidget_info;ilvl_t intr_swlevel =0 ; - cpu =intr_heuristic (dev, dev_desc,-1 ,0 , owner_dev,NULL , &vector); - + cpu =intr_heuristic (dev,-1 , &vector);if (cpu =CPU_NONE ) {printk ("Unable to allocate interrupt for 0x%p\n" , (void *)owner_dev);return (0 );
@@ -150,10 +148,9 @@ASSERT (intr_hdl->i_flags &HUB_INTR_IS_ALLOCED ); - rv =intr_connect_level (cpu, vector, intr_hdl->i_swlevel,NULL ); -if (rv <0 ) { + rv =intr_connect_level (cpu, vector); +if (rv <0 )return rv; - } intr_hdl->i_xtalk_info.xi_setfunc = setfunc; intr_hdl->i_xtalk_info.xi_sfarg = setfunc_arg;
arch/ia64/sn/io/sn2/shuberror.c +3 -4
@@ -145,14 +145,13 @@/* Select a possible interrupt target where there is a free interrupt * bit and also reserve the interrupt bit for this IO error interrupt */ - intr_cpu =intr_heuristic (hub_v,0 ,SGI_II_ERROR ,0 ,hub_v, -"HUB IO error interrupt" ,&bit); + intr_cpu =intr_heuristic (hub_v,SGI_II_ERROR , &bit);if (intr_cpu =CPU_NONE ) { -printk ("hubii_eint_init: intr_reserve_level failed, cnode %d" , cnode); +printk ("hubii_eint_init: intr_heuristic failed, cnode %d" , cnode);return ; } - rv =intr_connect_level (intr_cpu,SGI_II_ERROR ,0 ,NULL ); + rv =intr_connect_level (intr_cpu,SGI_II_ERROR );request_irq (SGI_II_ERROR , hubii_eint_handler,SA_SHIRQ ,"SN_hub_error" , (void *)hub_v);irq_descp (bit)->status |=SN2_IRQ_PER_HUB ;ASSERT_ALWAYS (rv >=0 );
include/asm-ia64/sn/sn2/sn_private.h +2 -6
@@ -49,14 +49,10 @@#endif /* intr.c */ -extern int intr_reserve_level (cpuid_t cpu,int level,int err,vertex_hdl_t owner_dev,char *name);extern void intr_unreserve_level (cpuid_t cpu,int level); -extern int intr_connect_level (cpuid_t cpu,int bit,ilvl_t mask_no, -intr_func_t intr_prefunc); +extern int intr_connect_level (cpuid_t cpu,int bit);extern int intr_disconnect_level (cpuid_t cpu,int bit); -extern cpuid_t intr_heuristic (vertex_hdl_t dev,device_desc_t dev_desc, -int req_bit,int intr_resflags,vertex_hdl_t owner_dev, -char *intr_name,int *resp_bit); +extern cpuid_t intr_heuristic (vertex_hdl_t dev,int req_bit,int *resp_bit);extern void intr_block_bit (cpuid_t cpu,int bit);extern void intr_unblock_bit (cpuid_t cpu,int bit);extern void setrtvector (intr_func_t );
----- End forwarded message -----