mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* mark_bh in Linux 2.6.12 kernel
@ 2006-03-29 10:42 shiva g
  2006-03-29 10:56 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: shiva g @ 2006-03-29 10:42 UTC (permalink / raw)
  To: linux-kernel

Hi all,
    We are porting a usb host controller driver from 2.4.18 kernel to 2.6.12 
kernel. We face some issues with
mark_bh( ) call. Can anyone suggest us how we proceed in porting mark_bh( ) 
in the 2.6.12 kernel.

thanks and regards
shiva g 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mark_bh in Linux 2.6.12 kernel
  2006-03-29 10:42 mark_bh in Linux 2.6.12 kernel shiva g
@ 2006-03-29 10:56 ` Sam Ravnborg
  2006-03-29 11:01   ` shiva g
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2006-03-29 10:56 UTC (permalink / raw)
  To: shiva g; +Cc: linux-kernel

On Wed, Mar 29, 2006 at 04:12:43PM +0530, shiva g wrote:
> Hi all,
>    We are porting a usb host controller driver from 2.4.18 kernel to 2.6.12 
> kernel. We face some issues with
> mark_bh( ) call. Can anyone suggest us how we proceed in porting mark_bh( ) 
> in the 2.6.12 kernel.
Posting the source may give you more/better feedback...

	Sam

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mark_bh in Linux 2.6.12 kernel
  2006-03-29 10:56 ` Sam Ravnborg
@ 2006-03-29 11:01   ` shiva g
  2006-03-29 13:00     ` Peter Hagervall
  0 siblings, 1 reply; 4+ messages in thread
From: shiva g @ 2006-03-29 11:01 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

Here is the source

static __inline__ void usbd_schedule_device_bh(struct usb_device_instance 
*device)
{
    if (device && (device->status != USBD_CLOSING) && 
!device->device_bh.sync) {
        queue_task(&device->device_bh, &tq_immediate);
        mark_bh(IMMEDIATE_BH);
    }
}

Also,in the below code, will replacing "schedule_task" simply by 
"schedule_work" work?
static __inline__ void usbd_schedule_function_bh(struct usb_device_instance 
*device)
{
    if (device && (device->status != USBD_CLOSING) && 
!device->function_bh.sync) {
    schedule_task(&device->function_bh);
    }

---- Original Message ----- 
From: "Sam Ravnborg" <sam@ravnborg.org>
To: "shiva g" <shiva@isofttech.com>
Cc: <linux-kernel@vger.kernel.org>
Sent: Wednesday, March 29, 2006 4:26 PM
Subject: Re: mark_bh in Linux 2.6.12 kernel


> On Wed, Mar 29, 2006 at 04:12:43PM +0530, shiva g wrote:
>> Hi all,
>>    We are porting a usb host controller driver from 2.4.18 kernel to 
>> 2.6.12
>> kernel. We face some issues with
>> mark_bh( ) call. Can anyone suggest us how we proceed in porting 
>> mark_bh( )
>> in the 2.6.12 kernel.
> Posting the source may give you more/better feedback...
>
> Sam
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/ 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mark_bh in Linux 2.6.12 kernel
  2006-03-29 11:01   ` shiva g
@ 2006-03-29 13:00     ` Peter Hagervall
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Hagervall @ 2006-03-29 13:00 UTC (permalink / raw)
  To: shiva g; +Cc: Sam Ravnborg, linux-kernel

On Wed, Mar 29, 2006 at 04:31:49PM +0530, shiva g wrote:
> Here is the source
> 
> static __inline__ void usbd_schedule_device_bh(struct usb_device_instance 
> *device)
> {
>    if (device && (device->status != USBD_CLOSING) && 
> !device->device_bh.sync) {
>        queue_task(&device->device_bh, &tq_immediate);
>        mark_bh(IMMEDIATE_BH);
>    }
> }
> 
> Also,in the below code, will replacing "schedule_task" simply by 
> "schedule_work" work?
> static __inline__ void usbd_schedule_function_bh(struct usb_device_instance 
> *device)
> {
>    if (device && (device->status != USBD_CLOSING) && 
> !device->function_bh.sync) {
>    schedule_task(&device->function_bh);
>    }
> 

Have a look at http://lwn.net/images/pdf/LDD3/ch10.pdf

It should answer your questions.

	Peter

-- 
Peter Hagervall......................email: hager@cs.umu.se
Department of Computing Science........tel: +46(0)90 786 7018
University of Umeå, SE-901 87 Umeå.....fax: +46(0)90 786 6126

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-29 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-29 10:42 mark_bh in Linux 2.6.12 kernel shiva g
2006-03-29 10:56 ` Sam Ravnborg
2006-03-29 11:01   ` shiva g
2006-03-29 13:00     ` Peter Hagervall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®