linux-mips
[Top] [All Lists]

Re: [RFC][PATCH 06/10] bcma: get CPU clock

To: Hauke Mehrtens <hauke@hauke-m.de>
Subject: Re: [RFC][PATCH 06/10] bcma: get CPU clock
From: Rafał Miłecki <zajec5@gmail.com>
Date: Mon, 6 Jun 2011 12:34:30 +0200
Cc: linux-wireless@vger.kernel.org, linux-mips@linux-mips.org, mb@bu3sch.de, george@znau.edu.ua, arend@broadcom.com, b43-dev@lists.infradead.org, bernhardloos@googlemail.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=F1SZ9vOBp2i6Ti1j0BWioJ82cSvLzvI4L4TDhm8pZV0=; b=gjzuXNfx8GbueyzN6aL0W/YLY9ZD/ogjAv49YIhu8V8RtXc9c1NI5zbqLEh1IolSRP EAJ8Vi6XyjTOGFNdzQRbV+vuJhnavHin3lxxQ+pnNpDpj3XVg4ZWDhXdQhfmsjf6B50D mVVYdn13dazGripGIyKf2ALorsYkh+EEo1X/Y=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nuGt7HXR11mlL3qZfeO/OVVunV0pWHvWljnfOmOUSPFXfMUVdPqW84xsNAOE1MF0ND RTHVqeundCrnlpMlABpOAVgjLKVR3s/30On5Cj2W7/cmVnj9ArEZ8YDNI3k4HLLLko6q 4SS55YPwN+aYSs+8pn9oSRQ5cljChhS2nNe1c=
In-reply-to: <1307311658-15853-7-git-send-email-hauke@hauke-m.de>
References: <1307311658-15853-1-git-send-email-hauke@hauke-m.de> <1307311658-15853-7-git-send-email-hauke@hauke-m.de>
Sender: linux-mips-bounce@linux-mips.org
2011/6/6 Hauke Mehrtens <hauke@hauke-m.de>:
> +u32 bcma_cpu_clock(struct bcma_drv_mips *mcore)
> +{
> +       struct bcma_bus *bus = mcore->core->bus;
> +
> +       if (bus->drv_cc.capabilities & BCMA_CC_CAP_PMU)
> +               return bcma_pmu_get_clockcpu(&bus->drv_cc);
> +
> +       pr_err("No PMU available, need this to get the cpu clock\n");
> +       return 0;
> +}
> +EXPORT_SYMBOL(bcma_cpu_clock);

Are you really going to use this in some separated driver? If you're,
I heard that exporting symbol should go in pair with patch enabling
usage of such a symbol.

-- 
Rafał

<Prev in Thread] Current Thread [Next in Thread>