提交 a78ce96f 编写于 作者: S Samuel Pitoiset 提交者: Ben Skeggs

drm/nouveau/pm: remove unused nvkm_perfsig_wrap() function

Signed-off-by: NSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: NMartin Peres <martin.peres@free.fr>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 0b7515c0
......@@ -79,26 +79,6 @@ nvkm_perfsig_find(struct nvkm_pm *ppm, const char *name, u32 size,
return nvkm_perfsig_find_(dom, name, size);
}
struct nvkm_perfctr *
nvkm_perfsig_wrap(struct nvkm_pm *ppm, const char *name,
struct nvkm_perfdom **pdom)
{
struct nvkm_perfsig *sig;
struct nvkm_perfctr *ctr;
sig = nvkm_perfsig_find(ppm, name, strlen(name), pdom);
if (!sig)
return NULL;
ctr = kzalloc(sizeof(*ctr), GFP_KERNEL);
if (ctr) {
ctr->signal[0] = sig;
ctr->logic_op = 0xaaaa;
}
return ctr;
}
/*******************************************************************************
* Perfmon object classes
******************************************************************************/
......
......@@ -31,10 +31,6 @@ struct nvkm_perfsig {
const char *name;
};
struct nvkm_perfdom;
struct nvkm_perfctr *
nvkm_perfsig_wrap(struct nvkm_pm *, const char *, struct nvkm_perfdom **);
struct nvkm_specdom {
u16 signal_nr;
const struct nvkm_specsig *signal;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册