perf options: add OPT_CALLBACK_DEFAULT_NOOPT
authorAkihiro Nagai <akihiro.nagai.hw@hitachi.com>
Fri, 3 Dec 2010 03:58:53 +0000 (12:58 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Dec 2010 17:33:29 +0000 (15:33 -0200)
Add new macro OPT_CALLBACK_DEFAULT_NOOPT for parse_options.

It enables to pass the default value (opt->defval) to the callback function
processing options require no argument.

Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20101203035853.7827.17502.stgit@localhost6.localdomain6>
Signed-off-by: Akihiro Nagai <akihiro.nagai.hw@hitachi.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

No differences found