From: Thomas Hellstrom <thellstrom@vmware.com>
To: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 4/4] drm/ttm: remove ttm_mem_global->queue
Date: Wed, 07 Nov 2012 13:37:26 +0100 [thread overview]
Message-ID: <509A5606.6080105@vmware.com> (raw)
In-Reply-To: <1352238594-14991-4-git-send-email-marcin.slusarz@gmail.com>
On 11/06/2012 10:49 PM, Marcin Slusarz wrote:
> It's unused.
>
> Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
> Cc: Thomas Hellstrom <thellstrom@vmware.com>
> ---
> drivers/gpu/drm/ttm/ttm_memory.c | 1 -
> include/drm/ttm/ttm_memory.h | 2 --
> 2 files changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c
> index 479c6b0..dbc2def 100644
> --- a/drivers/gpu/drm/ttm/ttm_memory.c
> +++ b/drivers/gpu/drm/ttm/ttm_memory.c
> @@ -367,7 +367,6 @@ int ttm_mem_global_init(struct ttm_mem_global *glob)
> spin_lock_init(&glob->lock);
> glob->swap_queue = create_singlethread_workqueue("ttm_swap");
> INIT_WORK(&glob->work, ttm_shrink_work);
> - init_waitqueue_head(&glob->queue);
> ret = kobject_init_and_add(
> &glob->kobj, &ttm_mem_glob_kobj_type, ttm_get_kobj(), "memory_accounting");
> if (unlikely(ret != 0)) {
> diff --git a/include/drm/ttm/ttm_memory.h b/include/drm/ttm/ttm_memory.h
> index d6d1da4..72dcbe8 100644
> --- a/include/drm/ttm/ttm_memory.h
> +++ b/include/drm/ttm/ttm_memory.h
> @@ -60,7 +60,6 @@ struct ttm_mem_shrink {
> * for the GPU, and this will otherwise block other workqueue tasks(?)
> * At this point we use only a single-threaded workqueue.
> * @work: The workqueue callback for the shrink queue.
> - * @queue: Wait queue for processes suspended waiting for memory.
> * @lock: Lock to protect the @shrink - and the memory accounting members,
> * that is, essentially the whole structure with some exceptions.
> * @zones: Array of pointers to accounting zones.
> @@ -80,7 +79,6 @@ struct ttm_mem_global {
> struct ttm_mem_shrink *shrink;
> struct workqueue_struct *swap_queue;
> struct work_struct work;
> - wait_queue_head_t queue;
> spinlock_t lock;
> struct ttm_mem_zone *zones[TTM_MEM_MAX_ZONES];
> unsigned int num_zones;
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
prev parent reply other threads:[~2012-11-07 12:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-06 21:49 [PATCH 4/4] drm/ttm: remove ttm_mem_global->queue Marcin Slusarz
2012-11-07 12:37 ` Thomas Hellstrom [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=509A5606.6080105@vmware.com \
--to=thellstrom@vmware.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=marcin.slusarz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.