Linux MIPS Architecture development
 help / color / mirror / Atom feed
* gdbserver
@ 2002-03-12 19:22 Lanny DeVaney
  2002-03-12 20:45 ` gdbserver Johannes Stezenbach
  2002-03-12 22:10 ` gdbserver Daniel Jacobowitz
  0 siblings, 2 replies; 10+ messages in thread
From: Lanny DeVaney @ 2002-03-12 19:22 UTC (permalink / raw)
  To: linux-mips

I've looked back through the archives and find some references to 
problems configuring and/or building gdbserver for mips-linux.

I'm attempting to build gdb/gdbserver with --target=mips-linux as well, 
using gdb-5.1.1.  Have the earlier issues (they looked to be 1-2 years 
old) been resolved or am I still looking at a "manual build" process? 
 I'm getting lots of errors with the build, although the configure seems 
to go OK.  x86 host, linux-mips target.

Thanks for any help you can provide,
Lanny DeVaney
Red Hat, Inc.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH] generic clk API implementation for MIPS
@ 2007-06-26 15:20 Franck Bui-Huu
  2007-06-26 16:33 ` Atsushi Nemoto
  0 siblings, 1 reply; 10+ messages in thread
From: Franck Bui-Huu @ 2007-06-26 15:20 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips, ralf

Atsushi Nemoto wrote:
>
> Well, it seems simpler, but I suppose clk_register() is very useful ;)
>

Thinking about it, it seems to me that a clock is very static. I can't
think of a use case that would need to register a new clock after the
kernel has booted. Do you have a use case in mind ? cpu hotplug
perhaps ?

I'm a bit worry because if we go that way, we must be sure that
clk_register() can be called very early in the boot process. For
example, when using early printk thing...

> +static void clk_kref_release(struct kref *kref)
> +{
> +	/* Nothing to do */
> +}
> +
> +static void __clk_disable(struct clk *clk)
> +{
> +	if (clk->flags & CLK_ALWAYS_ENABLED)
> +		return;
> +
> +	kref_put(&clk->kref, clk_kref_release);
> +}
> +
> +void clk_disable(struct clk *clk)
> +{
> +	unsigned long flags;
> +
> +	spin_lock_irqsave(&clock_lock, flags);
> +	__clk_disable(clk);
> +	spin_unlock_irqrestore(&clock_lock, flags);
> +}
> +EXPORT_SYMBOL_GPL(clk_disable);

It seems that you stripped too much here: where clk->disable() method
is called ?

> +struct clk;
> +
> +struct clk_ops {
> +	void (*init)(struct clk *clk);
> +	void (*enable)(struct clk *clk);
> +	void (*disable)(struct clk *clk);
> +	int (*set_rate)(struct clk *clk, unsigned long rate);
> +};
> +
> +struct clk {
> +	struct list_head	node;
> +	const char		*name;
> +	int			id;
> +
> +	struct clk		*parent;

Is this field used by board code ?
---
                Franck

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

end of thread, other threads:[~2007-06-28 22:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-12 19:22 gdbserver Lanny DeVaney
2002-03-12 20:45 ` gdbserver Johannes Stezenbach
2002-03-12 21:46   ` gdbserver Lanny DeVaney
2002-03-12 22:10 ` gdbserver Daniel Jacobowitz
2002-03-12 22:16   ` gdbserver Lanny DeVaney
  -- strict thread matches above, loose matches on Subject: below --
2007-06-26 15:20 [PATCH] generic clk API implementation for MIPS Franck Bui-Huu
2007-06-26 16:33 ` Atsushi Nemoto
2007-06-27 15:39   ` Christoph Hellwig
2007-06-28  2:22     ` Atsushi Nemoto
2007-06-28  8:37       ` Christoph Hellwig
2007-06-28 20:45         ` gdbserver Ratin Rahman (mratin)
2007-06-28 20:45           ` gdbserver Ratin Rahman (mratin)
2007-06-28 21:41           ` gdbserver David Daney
2007-06-28 22:19             ` gdbserver Ratin Rahman (mratin)
2007-06-28 22:19               ` gdbserver Ratin Rahman (mratin)

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